plot.augSIMEX: Plot of Extrapolation

Description Usage Arguments Details Author(s) See Also Examples

View source: R/plot.augSIMEX.R

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

1
2
3
4
## 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

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

augSIMEX documentation built on April 23, 2020, 5:08 p.m.