Description Usage Arguments Value
Fit a ridge regression model to multiple groups in parallel
1 | par_reg(X, y, lams, idx)
|
X |
Data matrix |
y |
Column matrix of responses |
lams |
Vector of regularisation parameters to test |
idx |
Vector of sample groups |
List with two objects lambdas A vector of the optimal value of lambda for each group betas A matrix where columns are the fitted regression coefficients for each group variances A 3D array, where variances[,,1] will be the covariance matrix for B|y for the first model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.