Skip to content

Commit

Permalink
3.13-92
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderrobitzsch committed Mar 16, 2023
1 parent 70e11a5 commit a7cb764
Show file tree
Hide file tree
Showing 885 changed files with 3,284 additions and 1,206 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.13-35
Date: 2023-02-10 15:14:59
Version: 3.13-92
Date: 2023-03-16 12:47:17
Author: Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>)
Maintainer: Alexander Robitzsch <[email protected]>
Description:
Expand Down
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ importFrom(TAM, tam_outer)
importFrom(TAM, tam_packageinfo)
importFrom(TAM, tam_print_call)
importFrom(TAM, tam_rsessinfo)
importFrom(TAM, weighted_mean)
importFrom(TAM, weighted_sd)


Expand Down Expand Up @@ -250,6 +251,7 @@ export(lsem.bootstrap)
export(lsem.estimate)
export(lsem.MGM.stepfunctions)
export(lsem.permutationTest)
export(lsem.test)
export(lsem_local_weights)
export(marginal.truescore.reliability)
export(mcmc.2pno)
Expand Down Expand Up @@ -295,6 +297,7 @@ export(plausible.value.imputation.raschtype)
export(polychoric2)
export(pow)
export(predict_scale_group_means)
export(print_digits)
export(prior_model_parse)
export(prmse.subscores.scales)
export(prob.guttman)
Expand Down
1 change: 1 addition & 0 deletions R/IRT.expectedCounts.mirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.expectedCounts.mirt.R
## File Version: 0.07
## File Last Change: 2019-10-29

# IRT.expectedCounts.mirt

Expand Down
1 change: 1 addition & 0 deletions R/IRT.expectedCounts_sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.expectedCounts_sirt.R
## File Version: 0.16
## File Last Change: 2020-12-07



Expand Down
1 change: 1 addition & 0 deletions R/IRT.factor.scores.sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.factor.scores.sirt.R
## File Version: 0.16
## File Last Change: 2019-01-02


########################################################################
Expand Down
1 change: 1 addition & 0 deletions R/IRT.factor.scores.xxirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.factor.scores.xxirt.R
## File Version: 0.07
## File Last Change: 2018-12-30


###########################################################
Expand Down
1 change: 1 addition & 0 deletions R/IRT.irfprob.mirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.irfprob.mirt.R
## File Version: 0.27
## File Last Change: 2019-10-29


#--- irfprob singleGroup
Expand Down
1 change: 1 addition & 0 deletions R/IRT.irfprob.sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.irfprob.sirt.R
## File Version: 0.16
## File Last Change: 2018-12-30

########################################################
# convert theta.k into a matrix
Expand Down
1 change: 1 addition & 0 deletions R/IRT.likelihood.mirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.likelihood.mirt.R
## File Version: 0.284
## File Last Change: 2019-10-29


IRT_likelihood_mirt_singleGroup <- function( object, type, ... )
Expand Down
1 change: 1 addition & 0 deletions R/IRT.likelihood_sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.likelihood_sirt.R
## File Version: 0.18
## File Last Change: 2022-10-13


################################################
Expand Down
6 changes: 4 additions & 2 deletions R/IRT.mle.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
## File Name: IRT.mle.R
## File Version: 0.32
## File Version: 0.34
## File Last Change: 2023-03-08


#--- IRT.mle
IRT.mle <- function(data, irffct, arg.list, theta=rep(0,nrow(data)), type="MLE",
mu=0, sigma=1, maxiter=20, maxincr=3, h=0.001, convP=1e-04, maxval=9, progress=TRUE)
mu=0, sigma=1, maxiter=20, maxincr=3, h=0.001, convP=1e-04, maxval=9,
progress=TRUE)
{
N <- length(theta)
I <- ncol(data)
Expand Down
1 change: 1 addition & 0 deletions R/IRT.modelfit.sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.modelfit.sirt.R
## File Version: 0.20
## File Last Change: 2018-12-30


###########################################################
Expand Down
1 change: 1 addition & 0 deletions R/IRT.posterior.mirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.posterior.mirt.R
## File Version: 0.21
## File Last Change: 2019-10-29



Expand Down
1 change: 1 addition & 0 deletions R/IRT.posterior_sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: IRT.posterior_sirt.R
## File Version: 0.15
## File Last Change: 2018-12-30



Expand Down
1 change: 1 addition & 0 deletions R/L0_polish.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: L0_polish.R
## File Version: 0.12
## File Last Change: 2020-04-26


L0_polish <- function(x, tol, conv=0.01, maxiter=30, type=1, verbose=TRUE)
Expand Down
1 change: 1 addition & 0 deletions R/L0_polish_one_iteration.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: L0_polish_one_iteration.R
## File Version: 0.354
## File Last Change: 2019-01-14


L0_polish_one_iteration <- function(x, tol, eps=0.01, maxiter=30, type=1)
Expand Down
1 change: 1 addition & 0 deletions R/L1_polish.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: L1_polish.R
## File Version: 0.26
## File Last Change: 2019-01-14



Expand Down
1 change: 1 addition & 0 deletions R/L2_polish.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: L2_polish.R
## File Version: 0.07
## File Last Change: 2019-01-14

L2_polish <- function(x, eps=1e-4, maxiter=20)
{
Expand Down
1 change: 1 addition & 0 deletions R/Probtrace_sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: Probtrace_sirt.R
## File Version: 0.05
## File Last Change: 2019-04-25


# auxiliary function for mirt package
Expand Down
1 change: 1 addition & 0 deletions R/Q3.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: Q3.R
## File Version: 1.21
## File Last Change: 2018-12-30

###############################################################
# Yen's Q3 statistic (1984)
Expand Down
1 change: 1 addition & 0 deletions R/Q3.testlet.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: Q3.testlet.R
## File Version: 1.21
## File Last Change: 2018-12-30


################################################################################
Expand Down
1 change: 1 addition & 0 deletions R/R2conquest.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: R2conquest.R
## File Version: 1.41
## File Last Change: 2019-05-03



Expand Down
1 change: 1 addition & 0 deletions R/R2noharm-utility.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: R2noharm-utility.R
## File Version: 1.14
## File Last Change: 2018-12-30



Expand Down
1 change: 1 addition & 0 deletions R/R2noharm.EAP.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: R2noharm.EAP.R
## File Version: 0.26
## File Last Change: 2019-04-30

R2noharm.EAP <- function( noharmobj, theta.k=seq(-6,6,len=21), print.output=TRUE )
{
Expand Down
1 change: 1 addition & 0 deletions R/R2noharm.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: R2noharm.R
## File Version: 2.24
## File Last Change: 2018-12-30

#------------------------------------------------------------------
# NOHARM exploratory factor analysis
Expand Down
1 change: 1 addition & 0 deletions R/R2noharm.jackknife.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: R2noharm.jackknife.R
## File Version: 1.13
## File Last Change: 2018-12-30


#**** jackknife R2noharm
Expand Down
3 changes: 2 additions & 1 deletion R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: RcppExports.R
## File Version: 3.013034
## File Version: 3.013092
## File Last Change: 2023-03-16
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

Expand Down
1 change: 1 addition & 0 deletions R/Rhat_sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: Rhat_sirt.R
## File Version: 1.12
## File Last Change: 2022-05-16


####################################
Expand Down
45 changes: 27 additions & 18 deletions R/amh_plot.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## File Name: amh_plot.R
## File Version: 0.32
## File Version: 0.336
## File Last Change: 2023-03-15


######################################################
# plot results of objects of class amh
#*** plot results of objects of class amh
amh_plot <- function( x, conflevel=.95, digits=3, lag.max=.1, col.smooth="red",
lwd.smooth=2, col.split="blue", lwd.split=2, lty.split=1,
col.ci="orange", cex.summ=1, ask=FALSE, ... )
Expand Down Expand Up @@ -33,7 +33,8 @@ amh_plot <- function( x, conflevel=.95, digits=3, lag.max=.1, col.smooth="red",
sparm.vv <- smcmcobj[ smcmcobj$parameter==parm.vv, ]

#*** traceplot
graphics::plot( iterindex, x.vv, type="l", main=paste0( "Traceplot of ", parm.vv ),
graphics::plot( iterindex, x.vv, type="l",
main=paste0( "Traceplot of ", parm.vv ),
xlab="Iterations", ylab="", ... )
x1 <- as.numeric( x.vv )
xmin <- min(x1)
Expand All @@ -48,7 +49,7 @@ amh_plot <- function( x, conflevel=.95, digits=3, lag.max=.1, col.smooth="red",
i1 <- seq(g1[ii]+1, g1[ii+1] )
m1 <- mean( x1[ i1 ] )
graphics::lines( iterindex[ i1 ], rep( m1, length(i1) ), col=col.split,
lwd=lwd.split, lty=lty.split )
lwd=lwd.split, lty=lty.split )
}
# include moving average here!!
l1 <- sirt_moving_average(x1, B=round( lag.max / 2 ), fill=FALSE)
Expand All @@ -72,7 +73,8 @@ amh_plot <- function( x, conflevel=.95, digits=3, lag.max=.1, col.smooth="red",
# blue dashed line at
bd <- .05
ylim <- c( min( acf1, - bd), 1 )
graphics::plot( iter_vv, acf1, xlab="Lag", ylab="ACF", main=mtitle, type="n", ylim=ylim)
graphics::plot( iter_vv, acf1, xlab="Lag", ylab="ACF",
main=mtitle, type="n", ylim=ylim)
NL <- length(iter_vv)
for (hh in 1:NL){
graphics::lines( rep( iter_vv[hh],2), c(0, acf1[hh]) )
Expand All @@ -88,26 +90,30 @@ amh_plot <- function( x, conflevel=.95, digits=3, lag.max=.1, col.smooth="red",
x0 <- 0
y0 <- 0
heights.summ=c( .05, .15, .25, .35, .45, .55, .65, .75)
graphics::text( x0 + .0015, y0 + heights.summ[8], "Posterior Mean=", cex=cex.summ, pos=4)
graphics::text( x0 + .0015, y0 + heights.summ[8], "Posterior Mean=",
cex=cex.summ, pos=4)
graphics::text( x0 + .5, y0 + heights.summ[8],
paste0( sirt_format_numb( x=mean( x1 ), digits=round.summ) ), pos=4 )
paste0( sirt_format_numb( x=mean( x1 ), digits=round.summ) ), pos=4 )
hvv <- heights.summ[7]
graphics::text( x0 + .0015, y0 + hvv, "Posterior Mode=", cex=cex.summ, pos=4)
graphics::text( x0 + .5, y0 + hvv,
paste0( sirt_format_numb( x=sparm.vv$MAP, digits=round.summ) ), pos=4 )
paste0( sirt_format_numb( x=sparm.vv$MAP, digits=round.summ) ), pos=4 )

graphics::text( x0 + .0015, y0 + heights.summ[6], "Posterior SD=", cex=cex.summ, pos=4)
graphics::text( x0 + .0015, y0 + heights.summ[6], "Posterior SD=",
cex=cex.summ, pos=4)
graphics::text( x0 + .5, y0 + heights.summ[6],
paste0( sirt_format_numb( x=stats::sd( x1 ), digits=round.summ) ), pos=4 )
paste0( sirt_format_numb( x=stats::sd( x1 ), digits=round.summ) ), pos=4 )

hvv <- heights.summ[5]
graphics::text( x0 + .0015, y0 + hvv,
paste( round(100*conflevel ), "% Credibility Interval=",sep=""),
cex=cex.summ, pos=4 )
paste( round(100*conflevel ), "% Credibility Interval=",sep=""),
cex=cex.summ, pos=4 )

hvv <- heights.summ[4]
ci.lower <- sirt_format_numb( stats::quantile( x1, ( 1 - conflevel ) / 2 ), digits=round.summ )
ci.upper <- sirt_format_numb( stats::quantile( x1, 1- ( 1 - conflevel ) / 2 ), digits=round.summ )
ci.lower <- sirt_format_numb( stats::quantile( x1, ( 1 - conflevel ) / 2 ),
digits=round.summ )
ci.upper <- sirt_format_numb( stats::quantile( x1, 1-( 1 - conflevel ) / 2 ),
digits=round.summ )
graphics::text( x0 + .25, y0 + hvv,
paste( "[", ci.lower, ",", ci.upper, "]", sep=""),
cex=cex.summ, pos=4)
Expand All @@ -117,11 +123,14 @@ amh_plot <- function( x, conflevel=.95, digits=3, lag.max=.1, col.smooth="red",
paste0( sirt_format_numb( x=sparm.vv$Rhat, digits=3) ), pos=4 )
hvv <- heights.summ[2]
graphics::text( x0 + .0015, y0 + hvv, "SERatio=", cex=cex.summ, pos=4)
graphics::text( x0 + .5, y0 + hvv, paste0( sirt_format_numb( x=sparm.vv$SERatio, digits=3) ), pos=4 )
graphics::text( x0 + .5, y0 + hvv,
paste0( sirt_format_numb( x=sparm.vv$SERatio, digits=3)), pos=4 )

hvv <- heights.summ[1]
graphics::text( x0 + .0015, y0 + hvv, "Effective Sample Size=", cex=cex.summ, pos=4)
graphics::text( x0 + .705, y0 + hvv, paste0( sirt_format_numb( x=sparm.vv$effSize, digits=1) ), pos=4 )
graphics::text( x0 + .0015, y0 + hvv, "Effective Sample Size=",
cex=cex.summ, pos=4)
graphics::text( x0 + .705, y0 + hvv,
paste0( sirt_format_numb( x=sparm.vv$effSize, digits=1)), pos=4 )
graphics::par(ask=ask)
}
graphics::par(mfrow=c(1,1))
Expand Down
1 change: 1 addition & 0 deletions R/anova_sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: anova_sirt.R
## File Version: 0.23
## File Last Change: 2018-12-30

##############################################################
# anova rasch.mml
Expand Down
1 change: 1 addition & 0 deletions R/attach.environment.sirt.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: attach.environment.sirt.R
## File Version: 0.07
## File Last Change: 2018-12-30
##################################################
# attach all elements of an object in an environment
.attach.environment.sirt <- function( res, envir ){
Expand Down
1 change: 1 addition & 0 deletions R/automatic.recode.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: automatic.recode.R
## File Version: 1.18
## File Last Change: 2018-12-30

#*** automatic recoding of a dataset
automatic.recode <- function( data, exclude=NULL, pstart.min=.6,
Expand Down
1 change: 1 addition & 0 deletions R/bounds_parameters.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: bounds_parameters.R
## File Version: 0.08
## File Last Change: 2018-12-30


bounds_parameters <- function( pars, lower=NULL, upper=NULL)
Expand Down
1 change: 1 addition & 0 deletions R/brm.irf.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: brm.irf.R
## File Version: 0.11
## File Last Change: 2019-08-04

#--- item response function (discretized) beta response model
brm.irf <- function( Theta, delta, tau, ncat, thdim=1, eps=1E-10 )
Expand Down
1 change: 1 addition & 0 deletions R/brm.sim.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: brm.sim.R
## File Version: 0.11
## File Last Change: 2018-12-30


##################################################################
Expand Down
1 change: 1 addition & 0 deletions R/btm.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: btm.R
## File Version: 1.535
## File Last Change: 2020-04-18


#--- Bradley-Terry model in sirt
Expand Down
1 change: 1 addition & 0 deletions R/btm_fit_combine_tables.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: btm_fit_combine_tables.R
## File Version: 0.07
## File Last Change: 2019-03-09


btm_fit_combine_tables <- function( win1, win2, ind1, ind2, TP )
Expand Down
1 change: 1 addition & 0 deletions R/btm_fit_statistics.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: btm_fit_statistics.R
## File Version: 0.209
## File Last Change: 2022-04-17


#**** item outfit and infit statistic
Expand Down
1 change: 1 addition & 0 deletions R/btm_sim.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## File Name: btm_sim.R
## File Version: 0.03
## File Last Change: 2019-03-10

btm_sim <- function(theta, eta=0, delta=-99, repeated=FALSE)
{
Expand Down
Loading

0 comments on commit a7cb764

Please sign in to comment.