Description Usage Arguments Value References
View source: R/fun_simulate-data.R
This function allows to simulate data from a multidimensional Rasch model, in which one (or more) latent variables represent response styles such as extreme response style or acquiescence.
1 2 3 | sim_style_data(n = 200, items = 10, categ = 5, ndimc = 1,
style = NULL, irtmodel = "RSM", reversed = 1/3, var.s, mu.s = 0,
cor.cc, pop.thres = FALSE, my.theta, my.thres, emp = TRUE, sig = NULL)
|
n |
Numeric. Desired number of observations/persons. |
items |
Numeric. Desired number of items/stimuli. If |
categ |
Numeric. Desired number of categories per item. |
ndimc |
Numeric. Desired number of content-related latent variables (irrespective of number of style-related latent variables). |
style |
Parameter to specify which response style(s) influence the data,
can be either numeric or character. Users may choose one or more among
|
irtmodel |
A character string indicating which model to use. Currently
available is |
reversed |
Numeric. Indicates the number of reverse-coded items. Can be either a
ratio between 0 and 1 indicating the ratio of reverse-coded items or an
integer between 0 and |
var.s |
Numeric. The variance(s) of the response style distribution. |
mu.s |
Numeric. The mean(s) of the response style distribution. |
cor.cc |
An optional vector indicating the correlation between the
content-related variables (if |
pop.thres |
Logical. If |
my.theta |
Optional argument to employ a pre-specified vector of person parameters theta |
my.thres |
Optional argument to employ a pre-specified vector of item parameters. |
emp |
Logical. If true, |
sig |
Numeric matrix. The variance-covariance matrix of the multivariate
distribution of thetas. If non-NULL, this overrides |
Returns a list containing the data and basically a summary of the input specifications:
dat |
An array containing the data/responses of format |
theta |
A matrix containing the true person parameters of format
|
item.par |
A vector of item parameters |
n |
|
items.per.dim |
Number of items per dimension |
rev.coded.items |
Number of reverse-coded items per dimension |
categories |
|
irtmodel |
|
dims.content |
|
var.style |
Variance of the style-related latent variable(s). |
c.c.cor |
Correlation of the content-related latent variables. |
response.style |
|
Adams, R. J., Wilson, M., & Wang, W.-C. (1997). The multidimensional random coefficients multinomial logit model. Applied Psychological Measurement, 21, 1-23. doi:10.1177/0146621697211001
Plieninger, H. (in press). Mountain or molehill: A simulation study on the impact of reponse styles. Educational and Psychological Measurement.
Wetzel, E. & Carstensen, C. H. (2015). Multidimensional modeling of traits and response styles. European Journal of Psychological Assessment. Advance online publication. doi:10.1027/1015-5759/a000291
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.