Obtain the residuals or fitted values of the sparseDFM fit.
# S3 method for sparseDFM
fitted(object, standardize = FALSE, alpha_index = "best", ...)# S3 method for sparseDFM
residuals(object, standardize = FALSE, alpha_index = "best", ...)
Residuals or fitted values of sparseDFM.
an object of class 'sparseDFM'.
logical. The residuals and fitted values should be standardized. Default is FALSE, values returned in the original data \(\bm{X}\) scale.
Choose which L1 penalty parameter to display the results for. Default is 'best'. Otherwise, input a number between 1:length(alpha_grid) that indicates the required alpha parameter.
Further residuals arguments.