Description Usage Arguments Value
Predict new samples using the results from par_reg
1 | predict_groups(X, betas, idx)
|
X |
Data matrix of test samples |
betas |
Matrix of regression coefficients |
idx |
Vector of sample groups, corresponding to the columns of betas (e.g. idx=c(1, 3) means betas[,1] will be used to predict X[1,], and betas[,3] will be used to predict X[2,]) |
Vector of fitted values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.