Description Objects from the Class Slots Methods Author(s) See Also Examples
A class for changepoint objects.
Objects can be created by calls of the form new("cpt.ar", ...)
.
new("cpt.ar", ...)
:creates a new object with class cpt.ar
BICvalues
:Object of class "numeric"
, a coerced time series of the original data.
orders
:Object of class "array"
, a coerced time series of the original data.
data.set
:Object of class "matrix"
, a coerced time series of the original data.
cpttype
:Object of class "character"
, the type of changepoint that was identified.
method
:Object of class "character"
, the method that was used to search for changepoints.
test.stat
:Object of class "character"
, the test statistic for the analysis of the data.
pen.type
:Object of class "character"
, the penalty type specified in the analysis.
pen.value
:Object of class "numeric"
, the value of the penalty used in the analysis.
minseglen
:Object of class "numeric"
, the minimum segment length (no. of observations between changepoints) used in the analysis.
cpts
:Object of class "numeric"
, vector of changepoints identified.
ncpts.max
:Object of class "numeric"
, maximum number of changepoint that can be identified.
param.est
:Object of class "list"
, list where each element is a vector of parameter estimates, if requested.
date
:Object of class "character"
, date and time the changepoint analysis was run.
version
:Object of class "character"
, version number of the package used when the analysis was run.
signature(object = "cpt.ar")
: retrieves BIC values slot
signature(object = "cpt.ar")
: retrieves segment orders slot
signature(object = "cpt.ar")
: retrieves cpts slot
signature(object = "cpt.ar")
: retrieves cpttype slot
signature(object = "cpt.ar")
: retrieves vector version of data.set slot
signature(object = "cpt.ar")
: retrieves time series version of data.set slot
signature(object = "cpt.ar")
: retrieves test.stat slot
signature(object = "cpt.ar")
: retrieves ncpts.max slot
signature(object = "cpt.ar")
: retrieves method slot
signature(object = "cpt.ar")
: retrieves minseglen slot
signature(object = "cpt.ar")
: retrieves param.est slot
signature(object = "cpt.ar")
: retrieves pen.type slot
signature(object = "cpt.ar")
: retrieves pen.value slot
signature(object = "cpt.ar")
: replaces BICvalues slot
signature(object = "cpt.ar")
: replaces orders slot
signature(object = "cpt.ar")
: replaces cpts slot
signature(object = "cpt.ar")
: replaces cpttype slot
signature(object = "cpt.ar")
: replaces data.set slot
signature(object = "cpt.ar")
: replaces test.stat slot
signature(object = "cpt.ar")
: replaces ncpts.max slot
signature(object = "cpt.ar")
: replaces method slot
signature(object = "cpt.ar")
: replaces minseglen slot
signature(object = "cpt.ar")
: replaces param.est slot
signature(object = "cpt.ar")
: replaces pen.type slot
signature(object = "cpt.ar")
: replaces pen.value slot
signature(object = "cpt.ar")
: prints details of the cpt object including summary
signature(object = "cpt.ar")
: prints a summary of the cpt object
signature(object = "cpt.ar")
: plots the cpt object with changepoints highlighted
signature(object = "cpt.ar")
: calculates the parameter estimates for the cpt object
signature(object = "cpt.ar")
: returns the overall log-likelihood of the cpt object
Andrew Connell
data.set-methods
,cpts-methods
,cpt.ar
1 2 3 4 5 6 7 8 9 10 11 | showClass("cpt.ar") # shows the structure of the cpt class
x=new("cpt.ar") # creates a new object with the cpt class defaults
cpts(x) # retrieves the cpts slot from x
cpts(x)<-c(10,50,100) # replaces the cpts slot from x with c(10,50,100)
# Example of a change in variance at 100 in simulated normal data
set.seed(1)
x=c(rnorm(100,0,1),rnorm(100,0,10))
#ans=cpt.ar(x)
#print(ans) # prints details of the analysis including a summary
#summary(ans)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.