Skip to content

Commit

Permalink
Showing 10 changed files with 31 additions and 27 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: sirt
Type: Package
Title: Supplementary Item Response Theory Models
Version: 3.0-14
Date: 2018-09-28 14:55:05
Version: 3.0-21
Date: 2018-10-18 16:04:25
Author: Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>)
Maintainer: Alexander Robitzsch <robitzsch@ipn.uni-kiel.de>
Description:
2 changes: 1 addition & 1 deletion R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## File Name: RcppExports.R
## File Version: 3.000014
## File Version: 3.000021
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

3 changes: 2 additions & 1 deletion R/rasch.jml.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## File Name: rasch.jml.R
## File Version: 3.294
## File Version: 3.295


rasch.jml <- function( dat, method="MLE", b.init=NULL, constraints=NULL, weights=NULL,
@@ -34,6 +34,7 @@ rasch.jml <- function( dat, method="MLE", b.init=NULL, constraints=NULL, weights
if (! is.null(constraints) ){
prox <- FALSE
centerpersons <- FALSE
center <- "none"
}

# data preparations
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ If you use `sirt` and have suggestions for improvement or have found bugs, pleas
#### CRAN version `sirt` 2.7-50 (2018-07-09)


[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/sirt)](https://cran.r-project.org/package=sirt)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version-last-release/sirt)](https://cran.r-project.org/package=sirt)
&#160;&#160;


@@ -18,9 +18,9 @@ The CRAN version can be installed from within R using:
utils::install.packages("sirt")
```

#### GitHub version `sirt` 3.0-14 (2018-09-28)
#### GitHub version `sirt` 3.0-21 (2018-10-18)

[![](https://img.shields.io/badge/github%20version-3.0--14-orange.svg)](https://github.com/alexanderrobitzsch/sirt)&#160;&#160;
[![](https://img.shields.io/badge/github%20version-3.0--21-orange.svg)](https://github.com/alexanderrobitzsch/sirt)&#160;&#160;

The version hosted [here](https://github.com/alexanderrobitzsch/sirt) is the development version of `sirt`.
The GitHub version can be installed using `devtools` as:
8 changes: 5 additions & 3 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ CHANGELOG sirt


------------------------------------------------------------------------
VERSIONS sirt 3.0 | 2018-09-28 | Last: sirt 3.0-14
VERSIONS sirt 3.0 | 2018-10-18 | Last: sirt 3.0-21
------------------------------------------------------------------------

NOTE * included estimation details of btm() function
@@ -46,8 +46,10 @@ NOTE * included argument 'center' in rasch.jml() which now also allows
FIXED * exclude non-converged model estimates for permutation datasets
in lsem.permutationTest() (reported by Moritz Breit)
NOTE * added argument 'save.gamma.testlet' in mcmc.3pno.testlet()
(requested by Vladimir Volokhonsky, issue #4)

(requested by Vladimir Volokhonsky, issue #4)
NOTE * corrected internet address for DIMTEST software in ?conf.detect
(thanks to Julius Fenn)


DATA * included/modified datasets: ---
EXAMP * included/modified examples: rasch.jml (1)
4 changes: 2 additions & 2 deletions man/conf.detect.Rd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%% File Name: conf.detect.Rd
%% File Version: 1.42
%% File Version: 1.43

\name{conf.detect}
\alias{conf.detect}
@@ -139,7 +139,7 @@ Alexander Robitzsch

\seealso{
For a download of the free \emph{DIM-Pack} software (DIMTEST, DETECT) see
\url{http://psychometrictools.measuredprogress.org/home}.
\emph{https://psychometrics.onlinehelp.measuredprogress.org/tools/dim/}.

See \code{\link{expl.detect}} for exploratory DETECT analysis.
}
25 changes: 13 additions & 12 deletions man/rasch.pairwise.Rd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%% File Name: rasch.pairwise.Rd
%% File Version: 0.25
%% File Version: 0.27

\name{rasch.pairwise}
\alias{rasch.pairwise}
@@ -88,32 +88,33 @@ estimation) can be conducted with \code{\link{rasch.pml3}}.
#############################################################################

data(data.read)
dat <- data.read

#*** Model 1: no constraint on item difficulties
mod1 <- sirt::rasch.pairwise( data.read )
mod1 <- sirt::rasch.pairwise(dat)
summary(mod1)

#*** Model 2: sum constraint on item difficulties
mod2 <- sirt::rasch.pairwise( data.read, zerosum=TRUE)
mod2 <- sirt::rasch.pairwise(dat, zerosum=TRUE)
summary(mod2)

\dontrun{
#** obtain standard errors by bootstrap
mod2$item$b # extract item difficulties

# Bootstrap for item difficulties
# Bootstrap of item difficulties
boot_pw <- function(data, indices ){
dd <- data[ indices, ] # bootstrap of indices
mod <- sirt::rasch.pairwise( dd, zerosum=TRUE, progress=FALSE)
mod$item$b
}
dd <- data[ indices, ] # bootstrap of indices
mod <- sirt::rasch.pairwise( dat=dd, zerosum=TRUE, progress=FALSE)
return(mod$item$b)
}
set.seed(986)
library(boot)
dat <- data.read
bmod2 <- boot::boot( dat, boot_pw, R=999 )
bmod2
bmod2 <- boot::boot(data=dat, statistic=boot_pw, R=999 )
print(bmod2)
summary(bmod2)
# quantiles for bootstrap sample (and confidence interval)
apply( bmod2$t, 2, quantile, c(.025,.5, .975) )
apply(bmod2$t, 2, stats::quantile, probs=c(.025, .5, .975) )
}
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
2 changes: 1 addition & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Use the R_HOME indirection to support installations of multiple R version
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

PKG_CPPFLAGS = -I../inst/include -DBOOST_NO_LONG_LONG -DBOOST_NO_AUTO_PTR -DRCPP_USE_UNWIND_PROTECT
2 changes: 1 addition & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@
## This assume that we can call Rscript to ask Rcpp about its locations
## Use the R_HOME indirection to support installations of multiple R version
PKG_LIBS = $(shell $(R_HOME)/bin/Rscript.exe -e "Rcpp:::LdFlags()") $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

PKG_CPPFLAGS = -I../inst/include -DBOOST_NO_LONG_LONG -DBOOST_NO_AUTO_PTR -DRCPP_USE_UNWIND_PROTECT
2 changes: 1 addition & 1 deletion src/RcppExports.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// File Name: RcppExports.cpp
//// File Version: 3.000014
//// File Version: 3.000021
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

0 comments on commit 348fc27

Please sign in to comment.