predict.cplm: Change Point Linear Model Coefficients

View source: R/cplm.R

predict.cplmR Documentation

Change Point Linear Model Coefficients

Description

Change Point Linear Model Coefficients

Usage

## S3 method for class 'cplm'
predict(object, newdata, fit = NULL)

Arguments

fit

an optional specification of coefficient type "LS" or "L1". If not specified returns the best-guess as to which is more appropriate. (The presence of outlying bills trips the standard output to the penalized "L1" fit)

x

a 'cplm' object

Value

The coefficients from the change point linear model w/ specified fitting method.

Examples

data(rfm)
mod <- cplm(eui ~ oat, data = rfm)
coef(mod)
coef(mod, "L1")
coef(mod, "LS")

EcotopeResearch/rterm documentation built on Oct. 17, 2022, 4:02 p.m.