residuals.TRMF {TRMF} | R Documentation |
Extract TRMF residuals
Description
A function to extract residuals from a trained TRMF object.
Usage
## S3 method for class 'TRMF'
residuals(object, ...)
Arguments
object |
a trained TRMF object. |
... |
ignored |
Value
residuals extracted from TRMF object
Author(s)
Chad Hammerquist
See Also
create_TRMF
, TRMF_columns
, TRMF_trend
Examples
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)
resid(out)
[Package TRMF version 0.2.1 Index]