Learn R Programming

augSIMEX (version 3.7.4)

plot.augSIMEX: Plot of Extrapolation

Description

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.

Usage

## S3 method for class 'augSIMEX'

# S3 method for augSIMEX plot(x,...)

Arguments

x

the ``augSIMEX" object gotten from augSIMEX function.

other arguments that are passed into the function.

Details

The user may need to adjust the range of y axis for a proper display.

See Also

plot

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab