plot.mids | R Documentation |
Trace line plots portray the value of an estimate
against the iteration number. The estimate can be anything that you can calculate, but
typically are chosen as parameter of scientific interest. The plot
method for
a mids
object plots the mean and standard deviation of the imputed (not observed)
values against the iteration number for each of the $m$ replications. By default,
the function plot the development of the mean and standard deviation for each incomplete
variable. On convergence, the streams should intermingle and be free of any trend.
## S3 method for class 'mids'
plot(
x,
y = NULL,
theme = mice.theme(),
layout = c(2, 3),
type = "l",
col = 1:10,
lty = 1,
...
)
x |
An object of class |
y |
A formula that specifies which variables, stream and iterations are plotted. If omitted, all streams, variables and iterations are plotted. |
theme |
The trellis theme to applied to the graphs. The default is |
layout |
A vector of length 2 given the number of columns and rows in the plot.
The default is |
type |
Parameter |
col |
Parameter |
lty |
Parameter |
... |
Extra arguments for |
An object of class "trellis"
.
Stef van Buuren 2011
mice
, mids
,
xyplot
imp <- mice(nhanes, print = FALSE)
plot(imp, bmi + chl ~ .it | .ms, layout = c(2, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.