wrandom: generate random weight matrices

Description Usage Arguments Details Value Author(s) References Examples

Description

generate random weight matrices according to the dimensions of the original weight matrix

Usage

1
2
Wrandom(datmat, weightmat, repl = 100, prop01 = c(0.5, 0.5),
  keepmat = FALSE)

Arguments

datmat

data file

weightmat

original weight matrix

repl

number of weight matrices that are generated

prop01

vector providing the proportions of Zeros and Ones of the weight matrix to be generated

keepmat

if TRUE, the generated random weight matrices are kept in an three-dimensional array

Details

According to an original data file with a defined weight matrix to estimate a linear logistic test model (LLTM), random weight matrices with the same dimensions of the original one are generated. For each generated weight matrix, an LLTM is estimated using the function DRM of the R package pcIRT. A Rasch model is estimated for the original data set using the function DRM from pcIRT. The item parameters estimated by the Rasch model are correlated with the item parameters reconstructed from the parameters estimated by the LLTM.

Value

conv

convergence of the estimated LLTMs of the generated weight matrices

raschpar

estimated Rasch model item parameters for the original data set

lltmpar

item parameters reconstructed from the estimated parameters of the LLTM of the generated weight matrices

corlr

correlation of the re-constructed item parameters by the LLTM and the estimated item parameters of the original Rasch model

sumcorlr

short summary descriptive statistics of the correlations

randommat

array containing the generated weight matrices (if argument keepmat is set TRUE)

Author(s)

Christine Hohensinn

References

Baghaei, P. & Hohensinn, C. (submitted). A Method of Q-Matrix Validation for the Linear Logistic Test Model.

Fischer, G. H. (1973). The linear logistic test model as an instrument in educational research. Acta Psychologica, 37, 359-374.

Examples

1
2
3
4
5
#generate three random weight matrices for example data set
data(exampledata)
data(exampleweight)

Wrandom(exdat, orig.weight, repl=3)

christinehohensinn/parAL documentation built on May 13, 2019, 7 p.m.