-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fitted and residuals methods for cpt, cpt.reg, cpt.range classes.
- Loading branch information
Showing
8 changed files
with
213 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
\name{fitted-methods} | ||
\docType{methods} | ||
\alias{fitted-methods} | ||
\alias{fitted,ANY-method} | ||
\alias{fitted,cpt-method} | ||
\alias{fitted,cpt.range-method} | ||
\alias{fitted,cpt.reg-method} | ||
\title{ ~~ Methods for Function fitted in Package `stats' ~~} | ||
\description{ | ||
~~ Methods for function \code{fitted} in Package `stats' ~~ | ||
} | ||
\section{Methods}{ | ||
\describe{ | ||
|
||
\item{\code{signature(x = "ANY")}}{ | ||
Generic fitted function, see stats package description using ?fitted | ||
} | ||
|
||
\item{\code{signature(x = "cpt")}}{ | ||
Returns the fitted values for the model fit to x. Adapts to the specific model type. | ||
} | ||
\item{\code{signature(x = "cpt.range")}}{ | ||
As for the \code{cpt} objects except for one optional arguments, \code{ncpts}. The \code{ncpts} option allows you to specify the fitted values for \code{ncpts} changepoints in, i.e. the optimal may be specified as 10 changes but you want to get the fitted values for the segmentation with 5 changes (provided a segmentation with 5 changes is listed in \code{cpts.full(x)}. | ||
} | ||
\item{\code{signature(x = "cpt.reg")}}{ | ||
Returns the fitted values for the model fit to x. Adapts to the specific model type. | ||
} | ||
|
||
}} | ||
\keyword{methods} | ||
\keyword{fitted} | ||
\keyword{cpt} | ||
\keyword{internal} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
\name{residuals-methods} | ||
\docType{methods} | ||
\alias{residuals-methods} | ||
\alias{residuals,ANY-method} | ||
\alias{residuals,cpt-method} | ||
\alias{residuals,cpt.range-method} | ||
\alias{residuals,cpt.reg-method} | ||
\title{ ~~ Methods for Function residuals in Package `stats' ~~} | ||
\description{ | ||
~~ Methods for function \code{residuals} in Package `stats' ~~ | ||
} | ||
\section{Methods}{ | ||
\describe{ | ||
|
||
\item{\code{signature(x = "ANY")}}{ | ||
Generic residuals function, see stats package description using ?residuals | ||
} | ||
|
||
\item{\code{signature(x = "cpt")}}{ | ||
Returns the residuals values from the model fit to x. Adapts to the specific model type. | ||
} | ||
\item{\code{signature(x = "cpt.range")}}{ | ||
As for the \code{cpt} objects except for one optional arguments, \code{ncpts}. The \code{ncpts} option allows you to specify the residuals values for \code{ncpts} changepoints in, i.e. the optimal may be specified as 10 changes but you want to get the residuals values for the segmentation with 5 changes (provided a segmentation with 5 changes is listed in \code{cpts.full(x)}. | ||
} | ||
\item{\code{signature(x = "cpt.reg")}}{ | ||
Returns the residuals values from the model fit to x. Adapts to the specific model type. | ||
} | ||
|
||
}} | ||
\keyword{methods} | ||
\keyword{residuals} | ||
\keyword{cpt} | ||
\keyword{internal} |