Learn R Programming

registr (version 2.1.0)

fpca_gauss_argPreparation: Internal main preparation function for fpca_gauss

Description

Internal main preparation function for fpca_gauss

Usage

fpca_gauss_argPreparation(
  Y,
  Kt,
  time,
  t_min,
  t_max,
  periodic,
  seed,
  subsample,
  verbose
)

Value

List with elements knots, Theta_phi, alpha_coefs.

Arguments

Y, time, t_min, t_max

Internal objects created in fpca_gauss.

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.