MCparameter | R Documentation |
Utilty function to load MC model parameter
MCparameter( N = c(10, 15, 20, 25, 30, 50), k = c(6, 8, 10, 12, 14, 16, 18, 20, 25, 30), t_inputmat = FALSE )
N |
Sample size n of selected case. N = 10, 15, 20, 25, 30, 50 |
k |
Number of items k of selected case. k = 6, 8, 10, 12, 14, 16, 18, 20, 25, 30 |
t_inputmat |
Logical value. If TRUE an initial data sample according to
the Rasch model will be generated using function |
List of MC model parameters and initial data sample..
N |
Sample size. |
k |
Number of items. |
splitcr |
Split criterion which is a numeric vector x with length equal to number of persons and contains zeros and ones. It indicates group membership for every person. |
items |
A vector of item parameters of length k. First item set to 0. |
filename |
Name of MC case. Note: Roman numbers |
inputmat |
If |
call |
The matched call. |
see also dataset data.sim.rasch
## Not run: # Load MC model parameters and generate a new intial data matrix res <- MCparameter(N=10, k=10, t_inputmat = TRUE) # $N # [1] 10 # # $k # [1] 10 # # $splitcr # [1] 0 0 0 0 0 1 1 1 1 1 # # $items # I1 I2 I3 I4 I5 I6 I7 I8 I9 I10 # 0.0 -1.0 -0.5 0.0 0.0 0.0 0.0 0.0 0.5 1.0 # # $filename # [1] "C-I-10x10" # # $inputmat # I1 I2 I3 I4 I5 I6 I7 I8 I9 I10 # P1 0 1 1 0 1 1 1 0 0 0 # P2 1 1 1 1 1 1 1 1 1 1 # P3 1 1 1 0 0 0 0 0 0 1 # P4 1 0 0 1 0 1 1 1 1 1 # P5 1 0 0 1 1 0 1 0 0 0 # P6 0 0 0 0 0 0 0 1 1 0 # P7 0 0 1 1 1 0 0 1 1 1 # P8 0 0 0 0 0 0 0 0 0 1 # P9 1 1 0 1 1 1 1 1 1 1 # P10 0 1 0 0 0 0 1 0 0 1 # # $call # MCparameter(N = 10, k = 10, t_inputmat = TRUE) # # attr(,"class") # [1] "MCparameter" ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.