Skip to contents

Fits 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.

Usage

functional_on_scalar(y, x, yind, formula = y ~ x, ...)

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().

Value

The fitted pffr model object.