plot_prediction {coda4microbiome} | R Documentation |
plot_prediction
Description
Plot of the predictions of a fitted model: Multiple box-plot and density plots for binary outcomes and Regression plot for continuous outcome
Usage
plot_prediction(prediction, y, strata = NULL, showPlots = TRUE)
Arguments
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) |
Value
prediction plot
Author(s)
M. Calle - T. Susin
Examples
# 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)
[Package coda4microbiome version 0.2.4 Index]