predict.RRlog {RRreg} | R Documentation |
Predict Individual Prevalences of the RR Attribute
Description
Predictions of the RR logistic regression model for the individual probabilities (or logits) of having the sensitive RR attribute, or of the probability of the RR responses.
Usage
## S3 method for class 'RRlog'
predict(
object,
newdata = NULL,
type = c("link", "response", "attribute"),
se.fit = FALSE,
ci = 0.95,
...
)
Arguments
object |
A fitted |
newdata |
An optional vector, matrix, or data.frame with values on the predictor variables. Note that for matrices, the order of predictors should match the order of predictors in the formula. Uses the fitted values of the model if omitted. |
type |
|
se.fit |
Return standard errors for the predicted values in addition to confidence intervals. SEs on the logit scale are computed using the observed Fisher information from the fitted model. Standard errors for the probability scale are computed using the delta method. |
ci |
Confidence level for confidence interval. If |
... |
ignored |
Value
either a vector of predicted values or a matrix with columns for the
point estimates, confidence interval, and standard errors (if se.fit=TRUE
and ci=.95
).