powered by
Predict the outcome based on a fitted LUCID model
# S3 method for lucid predict(object, newG, newZ, newCoG = NULL, newCoY = NULL, ...)
A model fitted and returned by est.lucid
est.lucid
A new data set of genetic/environmental factors
A new data set of biomarkers
Optional. A new data set of covariates included in the G->X analysis
Optional. A new data set of covariates included in the X->Y analysis
Other parameters to be passed to predict
predict
A list contains predicted latent cluster and outcome for each observation
# NOT RUN { index <- sample(1:3000, 200) fit <- est.lucid(G = G1[-index, ], Z = Z1[-index, ], Y = as.matrix(Y1[-index, ])) pred <- predict(object = fit, newG = G1[index, ], newZ = Z1[index, ]) # }
Run the code above in your browser using DataLab