plot.augSIMEX {augSIMEX}R Documentation

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 class '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.

Author(s)

Qihuang Zhang and Grace Y. Yi.

See Also

plot

Examples

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))

[Package augSIMEX version 3.7.4 Index]