MCparameter: MC model parameter

View source: R/MCparameter.R

MCparameterR Documentation

MC model parameter

Description

Utilty function to load MC model parameter

Usage

MCparameter(
  N = c(10, 15, 20, 25, 30, 50),
  k = c(6, 8, 10, 12, 14, 16, 18, 20, 25, 30),
  t_inputmat = FALSE
)

Arguments

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 MCsimRasch.

Value

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 I to VI refer to cases with sample sizes n = 10, 15, 20, 25, 30, 50. Letters A to J refer to cases with number of items k = 6, 8, 10, 12, 14, 16, 18, 20, 25, 30

inputmat

If t_inputmat = TRUE: Initial data sample according to the Rasch model, generated with MCsimRasch.

call

The matched call.

References

see also dataset data.sim.rasch

Examples

## 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)

akurz1/tclboot documentation built on Oct. 23, 2022, 9:07 p.m.