Learn R Programming

changepoint (version 2.2.4)

param: Generic Function - param

Description

Generic function that returns parameter estimates.

Usage

param(object,...)

Value

Depends on the class of object, see individual methods

Arguments

object

Depending on the class of object depends on the method used to find the parameter estimates (and if one exists)

...

Other variables that may be required depending on the class of object, see individual methods.

Author

Rebecca Killick

Details

Generic Function that returns parameter estimates

See Also

param-methods,cpt.mean,cpt.var,cpt.meanvar

Examples

Run this code
set.seed(1)
x=c(rnorm(100,0,1),rnorm(100,0,10))
ans=cpt.var(x,penalty="Asymptotic",pen.value=0.01,method="AMOC",param.estimates=FALSE)
# if estimates were not requested in the analysis then they can be created at a later stage if
#required
ans=param(ans) # fills the param.est slot with the parameter estimes.
param.est(ans) # variance is 0.8067621

Run the code above in your browser using DataLab