Learn R Programming

TRMF (version 0.1.5)

coef.TRMF: Extract TRMF Coefficients (Fm)

Description

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

Usage

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

Arguments

object

a trained TRMF object.

...

other arguments.

Value

the coefficient matrix, t(Fm)

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

Run the code above in your browser using DataLab