This function build the alphas matrix for a dataframe of a curve_type curve
on a basis on a regul_time vector.
Usage
univariate_alpha_building(
df,
basis,
curve_type = NULL,
regul_time,
id_col = "id",
time_col = "time"
)
Arguments
- df
a dataframe (id, time, value_or_state)
- basis
a basis fd object
- curve_type
a character, 'cat' or 'num'
- regul_time
a numeric vector for time regularization
- id_col
a character for the id column name
- time_col
a character for the time column name