Probability Plots for Categorical Data Analysis
prplot.RdPlots the fitted probabilities for some very simplified special cases of categorical data analysis models.
Arguments
- object
Currently only an
cumulativeobject. This includes apropoddsobject since that VGAM family function is a special case ofcumulative.- control
List containing some basic graphical parameters.
- xlab, ylab, main, xlim, ylim, lty
See
parand...below.- col, rcol, lwd, rlwd, las, rug.arg
See
parand...below. Arguments starting withrrefer to the rug. Argumentrug.argis logical: add a rug for the distinct values of the explanatory variable?- ...
Arguments such as
xlabwhich are fed intoprplot.control(). Only a small selection of graphical arguments fromparare offered.
Details
For models involving one term in the RHS of the formula this function plots the fitted probabilities against the single explanatory variable.
Value
The object is returned invisibly with the preplot slot assigned.
This is obtained by a call to plotvgam().
Examples
pneumo <- transform(pneumo, let = log(exposure.time))
fit <- vglm(cbind(normal, mild, severe) ~ let, propodds, data = pneumo)
M <- npred(fit) # Or fit@misc$M
if (FALSE) prplot(fit)
prplot(fit, lty = 1:M, col = (1:M)+2, rug = TRUE, las = 1,
ylim = c(0, 1), rlwd = 2) # \dontrun{}
#> Error in eval(predvars, data, env): object 'let' not found