diff --git a/DESCRIPTION b/DESCRIPTION
index edf92bf..7860221 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,8 +1,8 @@
Package: immer
Type: Package
Title: Item Response Models for Multiple Ratings
-Version: 1.2-10
-Date: 2020-08-16 17:17:13
+Version: 1.3-2
+Date: 2022-04-13 10:22:26
Author:
Alexander Robitzsch [aut, cre], Jan Steinfeld [aut]
Maintainer: Alexander Robitzsch Robitzsch, A., & Steinfeld, J. (2020).
- immer: Item response models for multiple ratings. R package version 1.2-10. https://CRAN.R-project.org/package=immer Robitzsch, A., & Steinfeld, J. (2022).
+ immer: Item response models for multiple ratings. R package version 1.3-2. https://CRAN.R-project.org/package=immer The version hosted here is the development version of The immer package has following features: Estimation of the hierarchical rater model (Patz et al., 2002) with
-Citation
number = {1},
pages = {101--139},
}
- @Manual{,
title = {immer: Item response models for multiple ratings},
author = {Alexander Robitzsch and Jan Steinfeld},
- year = {2020},
- note = {R package version 1.2-10},
+ year = {2022},
+ note = {R package version 1.3-2},
url = {https://CRAN.R-project.org/package=immer},
}
diff --git a/docs/index.html b/docs/index.html
index cb400d6..6efc152 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -40,7 +40,7 @@
@@ -108,7 +108,7 @@
GitHub version
immer
. The GitHub version can be installed using devtools
as:devtools::install_github("alexanderrobitzsch/immer")
+devtools::install_github("alexanderrobitzsch/immer")
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index 3ed6c6e..c1de046 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -2,5 +2,5 @@ pandoc: 1.13.1
pkgdown: 1.5.1
pkgdown_sha: ~
articles: []
-last_built: 2020-08-16T15:26Z
+last_built: 2022-04-13T08:31Z
diff --git a/docs/reference/data.immer.html b/docs/reference/data.immer.html
index fc80ce0..93d7557 100644
--- a/docs/reference/data.immer.html
+++ b/docs/reference/data.immer.html
@@ -72,7 +72,7 @@
diff --git a/docs/reference/data.ptam.html b/docs/reference/data.ptam.html
index e2a097d..b11f0ac 100644
--- a/docs/reference/data.ptam.html
+++ b/docs/reference/data.ptam.html
@@ -72,7 +72,7 @@
diff --git a/docs/reference/immer-package.html b/docs/reference/immer-package.html
index e8dd524..393dfd2 100644
--- a/docs/reference/immer-package.html
+++ b/docs/reference/immer-package.html
@@ -80,7 +80,7 @@
@@ -143,21 +143,21 @@ Details
immer_hrm
and simulation of it with immer_hrm_simulate
.immer_hrm
and simulation of it with immer_hrm_simulate
.
The linear logistic partial credit model as an extension to the
linear logistic test model (LLTM) for dichotomous data can be estimated with
-conditional maximum likelihood (Andersen, 1995) using immer_cml
.
immer_cml
.
The linear logistic partial credit model can be estimated with
composite conditional maximum likelihood (Varin, Reid & Firth, 2011) using the
-immer_ccml
function.
immer_ccml
function.
The linear logistic partial credit model can be estimated with a bias-corrected
joint maximum likelihood method (Bertoli-Barsotti, Lando & Punzo, 2014)
-using the immer_jml
function.
immer_jml
function.
Wrapper function immer_FACETS
to the commercial
+
Wrapper function immer_FACETS
to the commercial
program FACETS (Linacre, 1999) for analyzing multi-faceted Rasch models.
...
Linacre, J. M. (1999). FACETS (Version 3.17)[Computer software]. Chicago: MESA.
Install FACDOS and DOSBox immer_install
.
Install FACDOS and DOSBox immer_install
.
if (FALSE) { @@ -252,7 +252,7 @@Examp # rater variability parameters psi <- matrix( c(.1, .4, .8), nrow=I, ncol=R, byrow=TRUE ) # simulate HRM data -data <- immer::immer_hrm_simulate( theta, a, b, phi=phi, psi=psi ) +data <- immer::immer_hrm_simulate( theta, a, b, phi=phi, psi=psi ) # prepare data for FACETS data2FACETS <- function(data){ diff --git a/docs/reference/immer_agree2.html b/docs/reference/immer_agree2.html index e43ae86..dd08247 100644 --- a/docs/reference/immer_agree2.html +++ b/docs/reference/immer_agree2.html @@ -74,7 +74,7 @@ diff --git a/docs/reference/immer_ccml.html b/docs/reference/immer_ccml.html index d4f72ed..0f470c2 100644 --- a/docs/reference/immer_ccml.html +++ b/docs/reference/immer_ccml.html @@ -82,7 +82,7 @@ diff --git a/docs/reference/immer_cml.html b/docs/reference/immer_cml.html index 6bd2279..375489f 100644 --- a/docs/reference/immer_cml.html +++ b/docs/reference/immer_cml.html @@ -78,7 +78,7 @@ @@ -291,15 +291,14 @@
See a RM.weights package.
Examples
-library(sirt) +############################################################################# +# EXAMPLE 1: Dichotomous data data.read +############################################################################# + +library(sirt) library(psychotools) library(TAM) library(CDM) -library(eRm) - -############################################################################# -# EXAMPLE 1: Dichotomous data data.read -############################################################################# data(data.read, package="sirt") dat <- data.read @@ -313,6 +312,8 @@Examp coef(mod1a) # extract coefficients if (FALSE) { +library(eRm) + # estimate model in psychotools package mod1b <- psychotools::raschmodel(dat) summary(mod1b) @@ -359,7 +360,7 @@
Examp summary(mod4a) a <- mod4a$item$a # extract (non-integer) item discriminations # estimate integer item discriminations ranging from 1 to 3 -a_integer <- immer::immer_opcat( a, hmean=2, min=1, max=3 ) +a_integer <- immer::immer_opcat( a, hmean=2, min=1, max=3 ) # estimate one-parameter model with fixed integer item discriminations mod4 <- immer::immer_cml( dat=dat, a=a_integer ) summary(mod4) @@ -459,7 +460,7 @@
Examp dat <- data.immer07 #*** reshape dataset for one variable -dfr1 <- immer::immer_reshape_wideformat( dat$I1, rater=dat$rater, pid=dat$pid ) +dfr1 <- immer::immer_reshape_wideformat( dat$I1, rater=dat$rater, pid=dat$pid ) #-- extract structure of design matrix res <- immer:::lpcm_data_prep( dat=dfr1[,-1], weights=NULL, a=NULL) @@ -491,7 +492,7 @@
Examp dat <- data.immer07 #*** reshape dataset -dfr1 <- immer::immer_reshape_wideformat( dat[, paste0("I",1:4) ], rater=dat$rater, +dfr1 <- immer::immer_reshape_wideformat( dat[, paste0("I",1:4) ], rater=dat$rater, pid=dat$pid ) #-- structure of design matrix diff --git a/docs/reference/immer_hrm.html b/docs/reference/immer_hrm.html index af11dfc..ca30f60 100644 --- a/docs/reference/immer_hrm.html +++ b/docs/reference/immer_hrm.html @@ -73,7 +73,7 @@ @@ -285,7 +285,7 @@
R Journal of Educational and Behavioral Statistics, 27(4), 341-384.
See also
-+Simulate the HRM with
immer_hrm_simulate
.Simulate the HRM with
immer_hrm_simulate
.Examples
if (FALSE) { @@ -315,7 +315,7 @@Examp # rater variability parameters psi <- matrix( c(.1, .4, .8), nrow=I, ncol=R, byrow=TRUE ) # simulate HRM data -data <- immer::immer_hrm_simulate( theta, a, b, phi=phi, psi=psi ) +data <- immer::immer_hrm_simulate( theta, a, b, phi=phi, psi=psi ) pid <- data$pid rater <- data$rater dat <- data[, - c(1:2) ] diff --git a/docs/reference/immer_hrm_simulate.html b/docs/reference/immer_hrm_simulate.html index bd8159b..976b14d 100644 --- a/docs/reference/immer_hrm_simulate.html +++ b/docs/reference/immer_hrm_simulate.html @@ -72,7 +72,7 @@ @@ -146,7 +146,7 @@
Arg
Details
-See
+immer_hrm
for more details of the hierarchical rater model.See
immer_hrm
for more details of the hierarchical rater model.Value
Dataset with simulated item responses as well as vectors of person @@ -159,7 +159,7 @@
R Journal of Educational and Behavioral Statistics, 27(4), 341-384.
See also
-diff --git a/docs/reference/immer_install.html b/docs/reference/immer_install.html index 421308f..ae03bf0 100644 --- a/docs/reference/immer_install.html +++ b/docs/reference/immer_install.html @@ -73,7 +73,7 @@ @@ -146,7 +146,7 @@See Example 1 in
immer_hrm
for applying the +See Example 1 in
immer_hrm
for applying theimmer_hrm_simulate
function.R [Computer Software]. Arizona: Scottsdale.
See also
-+Install FACDOS and DOSBox
immer_FACETS
.Install FACDOS and DOSBox
immer_FACETS
.Examples
if (FALSE) { diff --git a/docs/reference/immer_jml.html b/docs/reference/immer_jml.html index 50e208b..fd9ec18 100644 --- a/docs/reference/immer_jml.html +++ b/docs/reference/immer_jml.html @@ -79,7 +79,7 @@ @@ -129,8 +129,8 @@Joint Maximum Likelihood Estimation for the Partial Credit Model JML estimation method (Bertoli-Barsotti, Lando & Punzo, 2014). -
immer_jml(dat, A=NULL, maxK=NULL, center_theta=TRUE, b_fixed=NULL, irtmodel="PCM", - pid=NULL, rater=NULL, eps=0.3, est_method="eps_adj", maxiter=1000, +immer_jml(dat, A=NULL, maxK=NULL, center_theta=TRUE, b_fixed=NULL, weights=NULL, + irtmodel="PCM", pid=NULL, rater=NULL, eps=0.3, est_method="eps_adj", maxiter=1000, conv=1e-05, max_incr=3, incr_fac=1.1, maxiter_update=10, maxiter_line_search=6, conv_update=1e-05, verbose=TRUE, use_Rcpp=TRUE, shortcut=TRUE) @@ -172,6 +172,10 @@Arg
+ Specified item response model. Can be one of the two partial credit model parametrizations
PCM
andPCM2
.+ weights ++ Optional vector of sampling weights
pid diff --git a/docs/reference/immer_latent_regression.html b/docs/reference/immer_latent_regression.html index 94a3ddf..01f6d2f 100644 --- a/docs/reference/immer_latent_regression.html +++ b/docs/reference/immer_latent_regression.html @@ -74,7 +74,7 @@ @@ -244,7 +244,7 @@ Person identifier
Examp dat <- sirt::sim.raschtype( stats::rnorm( N*G, mean=mu[group], sd=sigma[group] ), b) #-- estimate Rasch model with JML -mod1 <- immer::immer_jml( dat ) +mod1 <- immer::immer_jml( dat ) summary(mod1) #-- compute individual likelihood diff --git a/docs/reference/immer_opcat.html b/docs/reference/immer_opcat.html index 1820018..d2719e4 100644 --- a/docs/reference/immer_opcat.html +++ b/docs/reference/immer_opcat.html @@ -75,7 +75,7 @@ @@ -164,7 +164,7 @@
R CITO Measurement and Research Department Reports, 91-10.
See also
-diff --git a/docs/reference/immer_reshape_wideformat.html b/docs/reference/immer_reshape_wideformat.html index d767ccc..88b5b9e 100644 --- a/docs/reference/immer_reshape_wideformat.html +++ b/docs/reference/immer_reshape_wideformat.html @@ -72,7 +72,7 @@ diff --git a/docs/reference/immer_unique_patterns.html b/docs/reference/immer_unique_patterns.html index 3e4059d..4926caa 100644 --- a/docs/reference/immer_unique_patterns.html +++ b/docs/reference/immer_unique_patterns.html @@ -72,7 +72,7 @@ diff --git a/docs/reference/index.html b/docs/reference/index.html index 521fba5..825878e 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -71,7 +71,7 @@ diff --git a/docs/reference/lc2_agreement.html b/docs/reference/lc2_agreement.html index 921b172..9e62395 100644 --- a/docs/reference/lc2_agreement.html +++ b/docs/reference/lc2_agreement.html @@ -74,7 +74,7 @@ diff --git a/docs/reference/probs2logits.html b/docs/reference/probs2logits.html index d162fc4..c1668e2 100644 --- a/docs/reference/probs2logits.html +++ b/docs/reference/probs2logits.html @@ -72,7 +72,7 @@ diff --git a/inst/NEWS b/inst/NEWS index 432ffae..1b57a04 100644 --- a/inst/NEWS +++ b/inst/NEWS @@ -56,8 +56,22 @@ https://sites.google.com/site/alexanderrobitzsch/software + +------------------------------------------------------------ +VERSIONS immer 1.3 | 2022-04-13 | Last: immer 1.3-2 +------------------------------------------------------------ + +ADDED * --- + + +DATA * included/modified datasets: --- +EXAMP * included/modified examples: --- + + + + ------------------------------------------------------------ -VERSIONS immer 1.2 | 2020-08-16 | Last: immer 1.2-10 +VERSIONS immer 1.2 | 2022-04-11 | Last: immer 1.2-19 ------------------------------------------------------------ FIXED * fixed a bug in immer_jml() when a design matrix is @@ -73,12 +87,12 @@ FIXED * fixed a bug in immer_FACETS(), the first line was deleted during data preparation. (thanks to Gareth McCray) NOTE * link for Dosbox has been updated in immer_install() - +NOTE * included argument 'weights' in immer_jml() for + handling sampling weights DATA * included/modified datasets: --- EXAMP * included/modified examples: immer_jml (3) - ------------------------------------------------------------ VERSIONS immer 1.1 | 2018-12-11 | Last: immer 1.1-35 ------------------------------------------------------------ diff --git a/man/immer_cml.Rd b/man/immer_cml.Rd index 584a475..c40a010 100644 --- a/man/immer_cml.Rd +++ b/man/immer_cml.Rd @@ -1,5 +1,5 @@ %% File Name: immer_cml.Rd -%% File Version: 0.43 +%% File Version: 0.441 \name{immer_cml} \alias{immer_cml} @@ -179,15 +179,14 @@ For CML estimation with sample weights see also the \examples{ +############################################################################# +# EXAMPLE 1: Dichotomous data data.read +############################################################################# + library(sirt) library(psychotools) library(TAM) library(CDM) -library(eRm) - -############################################################################# -# EXAMPLE 1: Dichotomous data data.read -############################################################################# data(data.read, package="sirt") dat <- data.read @@ -201,6 +200,8 @@ logLik(mod1a) # extract log likelihood coef(mod1a) # extract coefficients \dontrun{ +library(eRm) + # estimate model in psychotools package mod1b <- psychotools::raschmodel(dat) summary(mod1b) diff --git a/man/immer_jml.Rd b/man/immer_jml.Rd index 7130e68..cb07fbf 100644 --- a/man/immer_jml.Rd +++ b/man/immer_jml.Rd @@ -1,5 +1,5 @@ %% File Name: immer_jml.Rd -%% File Version: 0.504 +%% File Version: 0.507 \name{immer_jml} \alias{immer_jml} @@ -23,8 +23,8 @@ JML estimation method (Bertoli-Barsotti, Lando & Punzo, 2014). } \usage{ -immer_jml(dat, A=NULL, maxK=NULL, center_theta=TRUE, b_fixed=NULL, irtmodel="PCM", - pid=NULL, rater=NULL, eps=0.3, est_method="eps_adj", maxiter=1000, +immer_jml(dat, A=NULL, maxK=NULL, center_theta=TRUE, b_fixed=NULL, weights=NULL, + irtmodel="PCM", pid=NULL, rater=NULL, eps=0.3, est_method="eps_adj", maxiter=1000, conv=1e-05, max_incr=3, incr_fac=1.1, maxiter_update=10, maxiter_line_search=6, conv_update=1e-05, verbose=TRUE, use_Rcpp=TRUE, shortcut=TRUE) @@ -53,6 +53,7 @@ Matrix with fixed \eqn{b} parameters \item{irtmodel}{Specified item response model. Can be one of the two partial credit model parametrizations \code{PCM} and \code{PCM2}. } +\item{weights}{Optional vector of sampling weights} \item{pid}{Person identifier} \item{rater}{Optional rater identifier} \item{eps}{ diff --git a/src/RcppExports.cpp b/src/RcppExports.cpp index e2c59db..430b15b 100644 --- a/src/RcppExports.cpp +++ b/src/RcppExports.cpp @@ -1,5 +1,5 @@ //// File Name: RcppExports.cpp -//// File Version: 1.002010 +//// File Version: 1.003002 // Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 @@ -7,6 +7,11 @@ using namespace Rcpp; using namespace arma; +#ifdef RCPP_USE_GLOBAL_ROSTREAM +Rcpp::RostreamSee
immer_cml
for usingimmer_opcat
to estimate +See
immer_cml
for usingimmer_opcat
to estimate the one-parameter logistic model.Examples
diff --git a/docs/reference/immer_proc_data.html b/docs/reference/immer_proc_data.html index 4cf1742..e547c43 100644 --- a/docs/reference/immer_proc_data.html +++ b/docs/reference/immer_proc_data.html @@ -75,7 +75,7 @@& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); +Rcpp::Rostream & Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); +#endif + // immer_ccml_proc_freq_item_pair Rcpp::NumericMatrix immer_ccml_proc_freq_item_pair(Rcpp::IntegerMatrix dat, Rcpp::IntegerMatrix dat_resp, int K, Rcpp::NumericVector weights, int ii, int jj); RcppExport SEXP _immer_immer_ccml_proc_freq_item_pair(SEXP datSEXP, SEXP dat_respSEXP, SEXP KSEXP, SEXP weightsSEXP, SEXP iiSEXP, SEXP jjSEXP) { diff --git a/src/immer_rcpp_ccml.cpp b/src/immer_rcpp_ccml.cpp index 9c6b704..1ae84d9 100644 --- a/src/immer_rcpp_ccml.cpp +++ b/src/immer_rcpp_ccml.cpp @@ -1,5 +1,5 @@ //// File Name: immer_rcpp_ccml.cpp -//// File Version: 0.720 +//// File Version: 0.721 // [[Rcpp::depends(RcppArmadillo)]] @@ -25,7 +25,7 @@ Rcpp::NumericMatrix immer_ccml_proc_freq_item_pair( Rcpp::IntegerMatrix dat, int ii1 = ii - 1; int jj1 = jj - 1; for (int nn=0; nn