get.sf.coeffs {robflreg} | R Documentation |
Get the estimated regression coefficient functions for scalar-on-function regression model
Description
This function is used to obtain the estimated regression coefficient functions and the estimated regression coefficients
(if
) for scalar-on-function regression model (see the description in
rob.sf.reg
based on output object obtained from rob.sf.reg
).
Usage
get.sf.coeffs(object)
Arguments
object |
The output object of |
Details
In the estimation of regression coefficient functions, the estimated functional principal components of predictor variables and the estimated regression parameter function obtained from the regression model of scalar response on the principal component scores of the functional predictor variables
are used, i.e.,
.
Value
A list object with the following components:
gp |
A list with length |
coefficients |
A list with length |
scl.coefficients |
A vector consisting of the estimated coefficients of the scalar predictor |
Author(s)
Ufuk Beyaztas and Han Lin Shang
Examples
sim.data <- generate.sf.data(n = 400, n.pred = 5, n.gp = 101)
Y <- sim.data$Y
X <- sim.data$X
gp <- rep(list(seq(0, 1, length.out = 101)), 5) # grid points of Xs
model.fit <- rob.sf.reg(Y, X, emodel = "classical", gp = gp)
coefs <- get.sf.coeffs(model.fit)