fitted.TRMF: Extract TRMF fitted values.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Methods.R

Description

A function to extract fitted values from a trained TRMF object.

Usage

1
2
## S3 method for class 'TRMF'
fitted(object,impute = FALSE,...)

Arguments

object

a trained TRMF object.

impute

logical, should imputed values be returned?

...

other arguments.

Value

Fitted values extracted from object. If impute is TRUE then entire fitted (unscaled and uncentered) matrix is returned, otherwise there are NAs in the same locations as the time series matrix.

Author(s)

Chad Hammerquist

See Also

create_TRMF, TRMF_columns, TRMF_trend

Examples

1
2
3
4
5
6
7
8
xm = poly(x = (-10:10)/10,degree=4)
fm = matrix(runif(40),4,10)
Am = xm%*%fm+rnorm(210,0,.2)

# create model
obj = create_TRMF(Am)
out = train(obj)
fitted(out)

TRMF documentation built on Aug. 16, 2021, 5:06 p.m.