predict_groups: Predict new samples using the results from par_reg

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Predict new samples using the results from par_reg

Usage

1
predict_groups(X, betas, idx)

Arguments

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,])

Value

Vector of fitted values


g-l-mansell/RcppRidge documentation built on Dec. 20, 2021, 9:43 a.m.