Description Usage Arguments Details Value Examples
Making predictions for positive outcomes for binary response.
1 2 | predict(GCMlasso_obj, var_response, var_group, rep_sample = 100,
seed = 1)
|
GCMlasso_obj |
|
var_response |
index of binary response variable. |
var_group |
index of the variable that defines clusters. |
rep_sample |
number of samples in the posterior predictive sampling. |
seed |
a random integer. |
Include new observations in the data set by treating the predicting variables
as NA, and run the MCMC using the function GCMlasso
. Code positive
cases as 1 and controls as 0. The maximum latent variable corresponding to the
positive cases is used as threshold to predict new observations.
Mean values of posterior predictive probabilities of positive cases for observations with known outcomes and new observations.
1 | predict_val<-predict(GCMlasso_obj,var_response=15,var_group=16)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.