Description Usage Arguments Details Author(s) See Also Examples
View source: R/plot.augSIMEX.R
This function visualizes the extrapolation step. It plots the simulated value for each lambda value and the curve of extrapolation. The function provide the plots for both methods simultaneously, and guides the user to choose a proper extrapolation method.
1 2 3 4 |
x |
the “augSIMEX" object gotten from |
... |
other arguments that are passed into the function. |
The user may need to adjust the range of y axis for a proper display.
Qihuang Zhang and Grace Y. Yi.
1 2 3 4 5 6 7 8 9 10 | data(ToyUni)
example<-augSIMEX(mainformula = Y ~ Xstar + Zstar + W, family = binomial(link = logit),
mismodel = pi|qi ~ W,
meformula = Xstar ~ X + Z + W,
data = ToyUni$Main,validationdata = ToyUni$Validation, subset = NULL,
err.var = "Xstar", mis.var = "Zstar", err.true = "X", mis.true = "Z",
err.mat = NULL,
lambda = NULL, M = 5, B = 2, nBoot = 2, extrapolation="quadratic")
plot(example, ylim = c(-1,0.4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.