fosr2s | R Documentation |
This function performs linear regression with functional responses and scalar predictors by (1) fitting a separate linear model at each point along the function, and then (2) smoothing the resulting coefficients to obtain coefficient functions.
fosr2s(
Y,
X,
argvals = seq(0, 1, , ncol(Y)),
nbasis = 15,
norder = 4,
pen.order = norder - 2,
basistype = "bspline"
)
Y |
the functional responses, given as an |
X |
|
argvals |
the |
nbasis |
number of basis functions used to represent the coefficient functions. |
norder |
norder of the spline basis, when |
pen.order |
order of derivative penalty. |
basistype |
type of basis used. The basis is created by an appropriate
constructor function from the fda package; see basisfd. Only |
Unlike {fosr}
and {pffr}
, which obtain smooth
coefficient functions by minimizing a penalized criterion, this function
introduces smoothing only as a second step. The idea was proposed by Fan
and Zhang (2000), who employed local polynomials rather than roughness
penalization for the smoothing step.
An object of class fosr
, which is a list with the following
elements:
fd |
object of class |
raw.coef |
|
raw.se |
|
yhat |
|
est.func |
|
se.func |
|
argvals |
points at which the coefficient functions are evaluated. |
lambda |
smoothing parameters (chosen by REML) used to
smooth the |
Philip Reiss phil.reiss@nyumc.org and Lan Huo
Fan, J., and Zhang, J.-T. (2000). Two-step estimation of functional linear models with applications to longitudinal data. Journal of the Royal Statistical Society, Series B, 62(2), 303–322.
{fosr}
, {pffr}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.