bfpca_argPreparation: Internal main preparation function for bfpca

Description Usage Arguments Value

View source: R/bfpca.R

Description

Internal main preparation function for bfpca

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
bfpca_argPreparation(
  Y,
  Kt,
  time,
  t_min,
  t_max,
  periodic,
  seed,
  subsample,
  verbose
)

Arguments

Y, time, t_min, t_max

Internal objects created in bfpca.

Kt

Number of B-spline basis functions used to estimate mean functions and functional principal components. Default is 8. If npc_varExplained is used, Kt is set to 20.

periodic

If TRUE, uses periodic b-spline basis functions. Default is FALSE.

seed

Set seed for reproducibility. Defaults to 1988.

subsample

if the number of rows of the data is greater than 10 million rows, the 'id' values are subsampled to get the mean coefficients.

verbose

Can be set to integers between 0 and 4 to control the level of detail of the printed diagnostic messages. Higher numbers lead to more detailed messages. Defaults to 1.

Value

List with elements knots, Theta_phi, xi, alpha_coefs.


julia-wrobel/registr documentation built on Jan. 16, 2022, 2:51 a.m.