Description Usage Arguments Details Slots References Examples
Obtains predictions from a fitted list experiment model of the class listExperiment
.
1 2 3 4 |
object |
Object of class "listExperiment" |
newdata |
An optional data frame from which to calculate predictions. |
treatment.misreport |
Value of the treatment variable covariate in the misreport sub-model (if included in the model).
|
par.control |
An optional set of control-items sub-model parameters to use in place of those from the fitted model. |
par.sensitive |
An optional set of sensitive-item sub-model parameters to use in place of those from the fitted model. |
par.misreport |
An optional set of misreport sub-model parameters to use in place of those from the fitted model. |
... |
Additional arguments |
If newdata
is omitted, predictions will be made with
the data used for model fitting.
z.hat
Predicted probability of answering affirmatively to the sensitive item in the list experiment.
u.hat
Predicted probability of misreporting (assuming respondent holds the sensitive belief).
Eady, Gregory. 2017 "The Statistical Analysis of Misreporting on Sensitive Survey Questions."
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(gender)
## Not run:
# Note: substantial computation time
model.gender <- listExperiment(y ~ gender + ageGroup + education +
motherTongue + region + selfPlacement,
data = gender, J = 4,
treatment = "treatment", direct = "direct",
control.constraint = "none",
sensitive.response = 0,
misreport.treatment = TRUE)
predict(model.gender, treatment.misreport = 0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.