Description Usage Arguments Value See Also
View source: R/fun_replicatesimulationforroc.R
This function repeatedly simulates data that are distorted by response style. It makes use of the scale scores \bar{X}—which are influenced by both the attribute and response style—as well as the true person parameters θ_1, that is, the persons' standing on the attribute, which is unaffected by response style. These two scores are used to classify each individual at certain cutoff values as either above (i.e., positive) or below (i.e., negative) the cutoff. Subsequently, the true positive rate (TPR), the false positive rate (FPR), the precision, and the accuracy are calculated at every cutoff value.
1 2 3  predict_style(reps = 100, n = 200, items = 10, categ = 5, ndimc = 1,
style = NULL, reversed = 1/3, mu.s = 0, var.s, sig = NULL,
emp = TRUE, cutoff, ...)

reps 
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 contentrelated latent variables (irrespective of number of stylerelated 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 reversecoded items. Can be either a
ratio between 0 and 1 indicating the ratio of reversecoded 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. 
sig 
Numeric matrix. The variancecovariance matrix of the multivariate
distribution of thetas. If nonNULL, this overrides 
emp 
Logical. If true, 
cutoff 
Optional numeric vector. Desired cutoff (alpha) values at which to calculate TPR, FPR, etc; probably a sequence, for example from .95 to .05 (must be within the open interval of (0, 1)) 
... 
Other parameters passed to 
alpha 
The cutoff/alphavalues 
TPR 
True positive rate 
FPR 
False positive rate 
PREC 
Precision 
ACC 
Accuracy 

Further elements containing the input parameters 
The replicated function sim_style_data
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.