Description Usage Arguments Value Author(s)
View source: R/genip.montecarlo.R
Generate simulated responses of survey respondents with ideal points through Monte Carlo method.
1 2 3 4 5 6 7 8 9 10 11 12 |
n |
Number of respondents. |
q |
Number of issues. |
ncat |
Number of ordered category in responses. |
ndim |
Number of dimentions in ideal points. |
missing |
Proportion of missing responses. Ranges from 0-1. |
correlations.lim |
Limits in the range of correlation between respondents and issues. Higher value indicates stronger association between respondent's values and their ideal points in the issue. |
utility.probs |
Utility function is selected randomly from three options – "linear","normal","quadratic". This argument defines sampling weights for utility functions. |
error.respondents |
The lower and upper limits of uniform distribution that are used to initiate values of respondents. |
error.issues |
The |
idealpoints.lim |
Limits in the range of ideal points. The values outside of this range is recoded into minimum and maximum value of the range. |
A list with the following elements
simulated.responses
: n*q data.frame of simulated responses.
perfect.responses
: Hypothetical responses if each respondents give responses without error.
idealpoints
: Ideal point coordinates of each respondent.
normalvectors
: Normal vectors.
heteroskedastic.respondents
: Initial values assigned to respondents.
heteroskedastic.issues
: Initial values assigned to issues.
correlations
: Correlation between ideal point dimensions.
knowledge
: Correlation binned into three categories.
error
: Proportions of incorrect choices.
Tzu-Ping Liu jamesliu0222@gmail.com, Gento Kato gento.badger@gmail.com, and Sam Fuller sjfuller@ucdavis.edu.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.