Description Usage Arguments Details Author(s) See Also Examples
View source: R/predict.augSIMEX.R
This function returns the predictions and optionally estimates the standard errors of the predictions from a fitted augSIMEX object.
1 2 3 4 5 |
object |
the “augSIMEX" object gotten from |
newdata |
An optional data frame in which to look for variables with which to predict. If not specified, the prediction will be conducted on the original main data. |
type |
the type of prediction needed. The default is on the scale of the linear predictors; the alternative " |
se.fit |
a logical variable indicating if standard errors are required. |
dispersion |
a numeric variable specifying the dispersion of the fit to be assumed when computing the standard errors. |
terms |
a character vector specifies which terms are to be returned. This is the case for |
na.action |
function determining what should be done with missing values in |
... |
other arguments that are passed into the function. |
The specifications of the arugments are the same as the setting in glm
function. The user may refer to the predict.glm
.
Qihuang Zhang and Grace Y. Yi.
1 2 3 4 5 6 7 8 9 | 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")
predict(example)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.