pairSE(daten, m = NULL, nsample = 30, size = 0.5, seed = "no", pot = TRUE, zerocor = TRUE, verbose = TRUE, ...)
n
respondents (rows) on k
items (colums) coded starting with 0 for lowest category to m-1 for highest category, with m beeing a vector (with length k) with the number of categories for the respective item.m = NULL
, m
is calculated from data, assuming that every response category is at least once present in data. For sparse data it is strongly recomended to explicitly define the number of categories by defining this argument.WARNING! specifying high values for nsample
( > 100 ) may result in long computing time without leading to "better" estimates for SE. This may also be the case when choosing argument size="jack"
(see argument size
) in combination with large datasets (N > 5000).
data
when bootstraping for SE estimation. As an alternative, size
can be set to the character "jack"
(size="jack"
). This will set the subsample size to N-1 and set nsample=N
(see argument nsample
), with N beeing the number of persons in daten
.set.seed(seed)
.verbose = TRUE
(default) a message about subsampling is sent to console when calculating standard errors.nsample
and size
(see arguments). With regard to calculation time, the argument nsample
may be the 'time killer'. On the other hand, things (estimation of standard errors) will not necessarily get better when choosing large values for nsample
. For example choosing nsample=400
will only result in minimal change for standard error estimation in comparison to (nsample=30
) which is the default setting (see examples).To avoid numerical problems with off diagonal zeros when constructing the pairwise comparison matrix Mnicjc, powers of the Mnicjc matrix, can be used (Choppin, 1968, 1985). Using powers k of Mnicjc, argument pot=TRUE
(default), replaces the results of the direct comparisons between i and j with the sum of the indirect comparisons of i and j through an intermediate k.
In general, it is recommended to use the argument with default value pot=TRUE
.
Choppin, B. (1985). A fully conditional estimation procedure for Rasch model parameters. Evaluation in Education, 9(1), 29-42.
data(bfiN) # loading example data set
# calculating itemparameters and their SE for 5 neuroticism items with 6 answer categories (0-5).
neuro_itempar<-pairSE(daten = bfiN, m = 6)
summary(neuro_itempar) # summary for result
# plotting item thresholds with with their CI = 95%
plot(neuro_itempar)
plot(neuro_itempar,sortdif=TRUE)
###### example from details section 'Some Notes on Standard Errors' ########
neuro_itempar_400<-pairSE(daten = bfiN, m = 6,nsample=400)
plot(neuro_itempar)
plot(neuro_itempar_400)
Run the code above in your browser using DataLab