The function returns a list containing two objects.
alpha
A matrix with the estimated functional coefficients \(\alpha\).
Plots
A list of plot objects, each representing the corresponding function \(\alpha_l(x)\).
Arguments
data
A matrix \(M\) x \(I\) where each column represents one sample of the aggregated function — the matrix \(A\) in the model.
weights
A matrix \(L\) x \(I\) representing the weight values associated with each sample — the matrix \(y\) in the model.
x
A numeric vector of values at which the function is evaluated.
n_functions
Number of spline basis functions to be used for estimating \(\alpha_l(x)\).
References
Saraiva, M. A., & Dias, R. (2009). Analise não-parametrica de dados funcionais: uma aplicação a quimiometria (Doctoral dissertation, Master’s thesis, Universidade Estadual de Campinas, Campinas).