plot.augSIMEX {augSIMEX} | R Documentation |
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.
## S3 method for class 'augSIMEX'
## S3 method for class 'augSIMEX'
plot(x,...)
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.
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))