plot.pep {PEPBVS} | R Documentation |
Plots for object of class pep
Description
Generates four plots related to an object of class pep. In particular, the first one is a plot of the residuals against fitted values under Bayesian model averaging. The second plots the cumulative posterior probability of the top models (those with cumulative posterior probability larger than 0.99). The third plot depicts the marginal likelihood (in log scale) of a model against its dimension while the fourth plot shows the posterior inclusion probabilities of the explanatory variables (with those exceeding 0.5 marked in red).
Usage
## S3 method for class 'pep'
plot(x, ...)
Arguments
x |
An object of class pep (e.g. output of |
... |
Additional graphical parameters to be passed to plotting functions. |
Details
Let k be the number of models with cumulative posterior probability up to 0.99. Then, the second plot depicts the cumulative posterior probability of the top (k+1) models.
In the special case of no explanatory variables, the fourth plot with the posterior inclusion probabilities is not generated.
Value
No return value, used for generating a figure.
See Also
Examples
data(UScrime_data)
y <- UScrime_data[,"y"]
X <- UScrime_data[,-15]
res <- full_enumeration_pep(X,y)
plot(res)