Learn R Programming

refund (version 0.1-37)

smooth.construct.pcre.smooth.spec: mgcv-style constructor for PC-basis functional random effects

Description

Sets up design matrix for functional random effects based on the PC scores of the covariance operator of the random effect process. See smooth.construct.re.smooth.spec for more details on mgcv-style smoother specification and pcre for the corresponding pffr()-formula wrapper.

Usage

# S3 method for pcre.smooth.spec
smooth.construct(object, data, knots)

Value

An object of class "random.effect". See smooth.construct

for the elements that this object will contain.

Arguments

object

a smooth specification object, see smooth.construct

data

see smooth.construct

knots

see smooth.construct

Author

Fabian Scheipl; adapted from 're' constructor by S.N. Wood.