pfda: Principal Components for Functional Data Analysis

Description Usage Arguments Details Author(s) References See Also

Description

Functional data analysis using functional principle components. The principal components are formed using orthogonalized spline basis.

Usage

1
pfda(model, data = environment(model), ..., driver)

Arguments

model

a formula describing the model.

data

optional environment with variables in model.

...

optional arguments, see details.

driver

argument to force a driver function, see details for options.

Details

This is a generic function that interprets the formula into a principal component model. The driver argument controls which function the data is passed to, and is inferred if omitted. This will be most useful when forcing a binary response model over a continuous.

The model argument is a formula object that describes the variable and model that should be estimated. It uses unique special formula operators %&% and %|%. The following table gives the name of the driver an example formula, and any notes.

Name Formula Notes
single.continuous y ~ t %|% id + z1 + z2 A single continuous response variable, x, as a function of t.
single.binary y ~ t %|% id y should be a logical or factor.
dual.continuous y %&% z ~ t %|% id Paired model where both responses are continuous
dual.continuous y %&% z ~ t %|% id Paired model where y is a binary (logical or factor) variable
additive y ~ t %&% x %|% id + z1 + z2 Paired model where y is a binary (logical or factor) variable

where

The ... argument is to hold the optional arguments that control the fit. All optional arguments have default values that are implied if the argument is omitted. The possible arguments are

The penalties and df arguments should be vectors of length two for the single models the first being the penalty for the mean curve the second for the principal components. For the dual and additive models the arguments can be a vector or matrix the first two elements for the mean curves and the sencond for the principal components. This translates to, in terms of a 2 by 2 matrix, the rows for the variables and the columns for mean and principal component penalties.

Author(s)

Andrew Redd Maintainer: Andrew Redd <aredd at stat.tamu.edu>

References

Joint modelling of paired sparse functional data using principal components Lan Zhou; Jianhua Z. Huang; Raymond J. Carroll, Biometrika, 2008 95: 601-619

See Also

pfda


pfda documentation built on May 2, 2019, 5 p.m.