Description Usage Arguments Author(s) Examples
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.
1 2 3 |
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
1 2 3 4 5 6 7 8 9 10 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.