Description Usage Arguments Details Value Examples
View source: R/summarize_extract.R
This is a function for obtaining predictions and optionally estimates standard errors of those prediction from a fitted iZIP regression object.
1 2 3 4 5 6 7 8 |
object |
an object class 'izip', obtained from a call to |
newdata |
optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used. |
se.fit |
logical; indicating if standard errors are required. |
type |
the type of prediction required. The default is 'link' which is the scale of the linear predictor i.e., a log scale; the alternative 'response' is on the scale of the response variable. The value of this argument can be abbreviated. |
... |
other arguments passed to or from other methods (currently unused). |
If newdata is omitted the predictions are based on the data used for the fit.
If se.fit = FALSE
, a vector of predictions.
If se.fit = TRUE
, a list with components
fit |
Predictions, as for se.fit = FALSE. |
se.fit |
Estimated standard errors. |
1 2 3 4 5 6 7 8 9 10 11 12 | data(bioChemists)
M_bioChem <- glm.izip(art ~ ., data = bioChemists)
predict(M_bioChem)
predict(M_bioChem, type = "response")
predict(M_bioChem, se.fit = TRUE, type = "response")
newdataframe <- data.frame(
fem = "Women", mar = "Married", kid5 = 2,
phd = 3, ment = 8
)
predict(M_bioChem, se.fit = TRUE, newdata = newdataframe, type = "response")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.