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

View source: R/pffr-pcre.R

smooth.construct.pcre.smooth.specR Documentation

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 class 'pcre.smooth.spec'
smooth.construct(object, data, knots)

Arguments

object

a smooth specification object, see smooth.construct

data

see smooth.construct

knots

see smooth.construct

Value

An object of class "random.effect". See smooth.construct for the elements that this object will contain.

Author(s)

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


refunders/refund documentation built on March 20, 2024, 7:11 a.m.