View source: R/coda4microbiome_functions.R
plot_prediction | R Documentation |
Plot of the predictions of a fitted model: Multiple box-plot and density plots for binary outcomes and Regression plot for continuous outcome
plot_prediction(prediction, y, strata = NULL, showPlots = TRUE)
prediction |
the fitted values of predictions for the model |
y |
outcome (binary or continuous); data type: numeric, character or factor vector |
strata |
stratification variable (default = NULL) |
showPlots |
if TRUE, shows the plots (default = TRUE) |
prediction plot
M. Calle - T. Susin
# prediction plot for the log-ratio between columns 3 and 32 on HIV status
data(HIV, package = "coda4microbiome")
x<-impute_zeros(x_HIV)
lr<-log(x[,3])-log(x[,32])
plot_prediction(lr, y_HIV)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.