Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

MakeFPCAInputs

Format FPCA input


Description

Turn vector inputs to the list so they can be used in FPCA

Usage

MakeFPCAInputs(
  IDs = NULL,
  tVec,
  yVec,
  na.rm = FALSE,
  sort = FALSE,
  deduplicate = FALSE
)

Arguments

IDs

np-by-1 vector of subject IDs (Default: NULL)

tVec

Either an np-by-1 vector of measurement times, or a p-by-1 vector corresponding to the common time support

yVec

n-by-1 vector of measurements from the variable of interest, or a n-by-p matrix with each row corresponding to the dense observations.

na.rm

logical indicating if NA should be omitted (Default: FALSE)

sort

logical indicating if Lt (and the correspoding Ly values) should be ensured to be sorted (Default: FALSE)

deduplicate

logical indicating if the Lt should be ensured not to have within-subject duplicated values; the Ly values of repeated Lt values are averaged (Default: FALSE)

Value

L list containing 3 lists each of length 'm', 'm' being the number of unique subject IDs


fdapace

Functional Data Analysis and Empirical Dynamics

v0.5.6
BSD_3_clause + file LICENSE
Authors
Cody Carroll [aut, cre] (<https://orcid.org/0000-0003-3525-8653>), Alvaro Gajardo [aut], Yaqing Chen [aut], Xiongtao Dai [aut], Jianing Fan [aut], Pantelis Z. Hadjipantelis [aut], Kyunghee Han [aut], Hao Ji [aut], Shu-Chin Lin [ctb], Paromita Dubey [ctb], Hans-Georg Mueller [cph, ths, aut], Jane-Ling Wang [cph, ths, aut]
Initial release
2021-01-10,

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.