fitted.TRMF | R Documentation |
A function to extract fitted values from a trained TRMF object.
## S3 method for class 'TRMF'
fitted(object,impute = FALSE,...)
object |
a trained TRMF object. |
impute |
logical, should imputed values be returned? |
... |
other arguments. |
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.
Chad Hammerquist
create_TRMF
, TRMF_columns
, TRMF_trend
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.