
Fit a Function-on-Scalar Regression
functional_on_scalar.RdFits a function-on-scalar regression with refund::pffr() for cases where
a scalar response or contrast explains a functional weather series measured on a
common grid.
Arguments
- y
A numeric matrix with subjects in rows and time values in columns.
- x
A numeric vector or data frame of scalar predictors.
- yind
Numeric vector of time values matching the matrix columns.
- formula
Formula for the scalar part of the model. Defaults to
y ~ x.- ...
Additional arguments passed to
refund::pffr().