powered by
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 plot
the fitted values of predictions for the model
outcome (binary or continuous); data type: numeric, character or factor vector
stratification variable (default = NULL)
if TRUE, shows the plots (default = TRUE)
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)
Run the code above in your browser using DataLab