plot.mami {MAMI} | R Documentation |
Plots the bootstrap distribution of model selection/averaging estimators after multiple imputation. By default, the areas of the boostrap distribution that are left and right of zero are shaded in different colors to better identify the importance of each variable.
## S3 method for class 'mami' plot(x, shade.areas = TRUE, plots.p.page = c("1", "4", "9", "16"), color = c("lightgrey", "darkgrey"), adj.bw = 1, ask=T, ...)
x |
An object of class |
shade.areas |
A logical value indicating whether areas left and right of zero should be shaded or not. |
plots.p.page |
A string of either |
color |
A string vector of length 2 indicating the colors used for the shaded areas. |
adj.bw |
An integer to adjust the bandwidth. |
ask |
Logical argument whether page change needs to be confirmed |
... |
Further graphical arguments to be passed. |
Michael Schomaker
library(Amelia) data(freetrade) freetrade$pop <- log(freetrade$pop) # in line with original publication freetrade_imp <- amelia(freetrade, ts = "year", cs = "country", noms="signed", polytime = 2, intercs = TRUE, empri = 2) m1 <- mami(freetrade_imp, method="MS.criterion", outcome="tariff",add.factor=c("country"), inference="+boot",B=25,X.org=freetrade,print.time=TRUE) m1 # be patient with bootstrapping, increase B>=200 for better results plot(m1)