coef.TRMF {TRMF} | R Documentation |
Extract TRMF Coefficients (Fm)
Description
Returns the Fm (transposed) matrix from the matrix factorization Xm*Z*Fm.
Usage
## S3 method for class 'TRMF'
coef(object, ...)
Arguments
object |
a trained TRMF object. |
... |
other arguments. |
Value
the coefficient matrix, t(Fm)
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)
coef(out)
[Package TRMF version 0.2.1 Index]