CreateBWPlot: Functional Principal Component Analysis Bandwidth Diagnostics...

View source: R/CreateBWPlot.R

CreateBWPlotR Documentation

Functional Principal Component Analysis Bandwidth Diagnostics plot

Description

This function by default creates the mean and first principal modes of variation plots for 50 If provided with a derivative options object (?FPCAder) it will return the differentiated mean and first two principal modes of variation for 50

Usage

CreateBWPlot(fpcaObj, derOptns = NULL, bwMultipliers = NULL)

Arguments

fpcaObj

An FPCA class object returned by FPCA().

derOptns

A list of options to control the derivation parameters; see ?FPCAder. If NULL standard diagnostics are returned

bwMultipliers

A vector of multipliers that the original 'bwMu' and 'bwCov' will be multiplied by. (default: c(0.50, 0.75, 1.00, 1.25, 1.50)) - default: NULL

Examples

set.seed(1)
n <- 40
pts <- seq(0, 1, by=0.05)
sampWiener <- Wiener(n, pts)
sampWiener <- Sparsify(sampWiener, pts, 10)
res1 <- FPCA(sampWiener$Ly, sampWiener$Lt, 
            list(dataType='Sparse', error=FALSE, kernel='epan', verbose=FALSE))
CreateBWPlot(res1)

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