Description Usage Arguments Value See Also
View source: R/fun_replicate-simulation.R
This function replicates sim_style_data
and calculates a scale score
(i.e., the mean across all items) for every person for every dimension. It
mainly returns two values for every replication sample, namely, the observed
correlation of the two scales as well as their partial correlation
controlling for response style.
1 2 3 4 |
reps |
Numeric, the desired number of replications. |
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
|
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 |
mu.s |
Numeric. The mean(s) of the response style distribution. |
var.s |
Numeric. The variance(s) of the response style distribution. |
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 |
|
partial |
The partial correlation r_{\bar{X}_1, \bar{X}_2 \cdot θ_{\textrm{RS}}} |
obs |
The observed correlation |
|
Further columns contain the input parameters such as the number of categories |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.