coef.TRMF: Extract TRMF Coefficients (Fm)

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Methods.R

Description

Returns the Fm (transposed) matrix from the matrix factorization Xm*Fm.

Usage

1
2
## 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

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)
coef(out)

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