est_gspcr | R Documentation |
Estimate SPCA on the data given chosen parameter values
est_gspcr(object = NULL, dv, ivs, fam, active_set, ndim)
object |
|
dv |
numeric vector or factor of dependent variable values |
ivs |
|
fam |
character vector of length 1 storing the description of the error distribution and link function to be used in the model |
active_set |
names of the columns of ivs to be used as predictors |
ndim |
numeric vector defining the number of principal components to be used (2 or more) |
After deciding on the number of components and the active set, this estimates the GSPCR model. This function can be used by specifying the object argument or by filling in custom values for every argument. If both the object and any other argument are specified, then the argument values will be prioritized.
Description of function output
Edoardo Costantini, 2023
Bair, E., Hastie, T., Paul, D., & Tibshirani, R. (2006). Prediction by supervised principal components. Journal of the American Statistical Association, 101(473), 119-137.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.