predict.RRlog: Predict Individual Prevalences of the RR Attribute

predict.RRlogR Documentation

Predict Individual Prevalences of the RR Attribute


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.


## S3 method for class 'RRlog'
  newdata = NULL,
  type = c("link", "response", "attribute"), = FALSE,
  ci = 0.95,



A fitted RRlog model


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.


"response" returns predicted probabilities for the (observable) RR responses, "link" returns predicted logit-values for the (latent) sensitive attribute, and "attribute" returns predicted probabilities of having the (latent) sensitive attribute.

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.


Confidence level for confidence interval. If ci=FALSE, no confidence interval is returned. Confidence intervals on the probability scale (if type="response" or type="attribute") are computed based on the CI on the logit-scale using the inverse link function (hence, the CI will in general not be symmetric).




either a vector of predicted values or a matrix with columns for the point estimates, confidence interval, and standard errors (if and ci=.95).

danheck/RRreg documentation built on Nov. 13, 2022, 11:41 p.m.