Description Usage Arguments Value See Also
View source: R/fun_replicate-simulation.R
This function replicates sim_style_data
and returns the observed
coefficient alpha as well as the response style-free alpha for every
replication sample.
1 2 3 4 |
reps |
Numeric, the desired number of replications. |
n |
Numeric, the number of persons. If of length one, it's fixed to the provided value. If of length two, it's sampled from a uniform distribution using the two values as lower and upper limits, respectively. |
items |
Numeric, the number of items. If of length one, it's fixed to the provided value. If of length two, it's sampled from a uniform distribution using the two values as lower and upper limits, respectively. |
categ |
Numeric, the number of categories per item. If of length one, it's fixed to the provided value. If of length two, it's sampled from a uniform distribution using the two values as lower and upper limits, respectively.. |
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
|
reversed |
Numeric, the number of reverse-coded items. If of length one, it's fixed to the provided value. If of length two, it's sampled from a uniform distribution using the two values as lower and upper limits, respectively. |
mu.s |
Numeric, the response style mean. If of length one, it's fixed to the provided value. If of length two, it's sampled from a uniform distribution using the two values as lower and upper limits, respectively. |
var.s |
Numeric, the response style variance. If of length one, it's fixed to the provided value. If of length two, it's sampled from a uniform distribution using the two values as lower and upper limits, respectively. |
df |
Numeric. The df-parameter of the Wishart distribution from which the covariance is drawn. |
sig |
Numeric matrix. The variance-covariance matrix of the multivariate
distribution of thetas. If non-NULL, this overrides |
emp |
Logical. If true, |
... |
Other parameters passed to |
Returns a matrix of length reps
with the following columns:
bias |
|
true |
Response style-free alpha |
alpha |
Observed coefficient alpha |
dep |
Response style-dependent alpha, equal to bias |
|
Further columns contain the input parameters such as the number of categories |
The replicated function sim_style_data
, covariate-free alpha alpha_cov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.