FLMCI: Confidence Intervals for Functional Linear Models.

View source: R/FLMCI.R

FLMCIR Documentation

Confidence Intervals for Functional Linear Models.

Description

Bootstrap pointwise confidence intervals for the coefficient functions in functional linear models.

Usage

FLMCI(Y, X, level = 0.95, R = 999, optnsListY = NULL, optnsListX = NULL)

Arguments

Y

Either an n-dimensional vector whose elements consist of scalar responses, or a list which contains functional responses in the form of a list LY and the time points LT at which they are observed (i.e., list(Ly = LY,Lt = LT)).

X

A list of lists which contains the observed functional predictors list Lxj and the time points list Ltj at which they are observed. It needs to be of the form list(list(Ly = Lx1,Lt = Lxt1),list(Ly = Lx2,Lt = Lxt2),...).

level

A number taking values in [0,1] determining the confidence level. Default: 0.95.

R

An integer holding the number of bootstrap replicates. Default: 999.

optnsListY

A list of options control parameters for the response specified by list(name=value). See 'Details' in FPCA.

optnsListX

A list of options control parameters for the predictors specified by list(name=value). See 'Details' in FPCA.

Details

If measurement error is assumed, the diagonal elements of the raw covariance will be removed. This could result in highly unstable estimate if the design is very sparse, or strong seasonality presents. WARNING! For very sparse functional data, setting measurementError=TRUE is not recommended.

Value

A list containing the following fields:

CI_alpha

CI for the intercept function — A data frame holding three variables: CI_grid — the time grid where the CIs are evaluated, CI_lower and CI_upper — the lower and upper bounds of the CIs for the intercept function on CIgrid.

CI_beta

A list containing CIs for the slope functions — the length of the list is the same as the number of covariates. Each list contains the following fields: A data frame holding three variables: CI_grid — the time grid where the CIs are evaluated, CI_lower and CI_upper — the lower and upper bounds of the CIs for the coefficient function on CIgrid for j = 1,2,\dots.

level

The confidence level of the CIs.


fdapace documentation built on July 3, 2024, 5:08 p.m.