Learn R Programming

TRMF (version 0.1.5)

residuals.TRMF: Extract TRMF residuals

Description

A function to extract residuals from a trained TRMF object.

Usage

# S3 method for TRMF
residuals(object, ...)

Arguments

object

a trained TRMF object.

...

ignored

Value

residuals extracted from TRMF object

See Also

create_TRMF, TRMF_columns, TRMF_trend

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab