-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9dea4f
commit 8e16305
Showing
103 changed files
with
1,468 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 4.2-40 | ||
Date: 2024-03-19 13:56:57 | ||
Version: 4.2-51 | ||
Date: 2024-04-12 16:00:09 | ||
Author: Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>) | ||
Maintainer: Alexander Robitzsch <[email protected]> | ||
Description: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## File Name: IRT.anova.sirt.R | ||
## File Version: 0.02 | ||
|
||
|
||
|
||
IRT.anova.sirt <- function (object, ...) | ||
{ | ||
cl <- match.call() | ||
cl2 <- paste(cl)[-1] | ||
if (length(list(object, ...)) !=2) { | ||
stop('anova method can only be applied for comparison of two models.\n') | ||
} | ||
objects <- list(object, ...) | ||
model1a <- objects[[1]] | ||
model2a <- objects[[2]] | ||
model1 <- IRT.IC(model1a) | ||
model2 <- IRT.IC(model2a) | ||
dfr1 <- data.frame(Model=cl2[1], loglike=model1['loglike'], | ||
Deviance=-2 * model1['loglike']) | ||
dfr1$Npars <- model1['Npars'] | ||
dfr1$AIC <- model1['AIC'] | ||
dfr1$BIC <- model1['BIC'] | ||
dfr2 <- data.frame(Model=cl2[2], loglike=model2['loglike'], | ||
Deviance=-2 * model2['loglike']) | ||
dfr2$Npars <- model2['Npars'] | ||
dfr2$AIC <- model2['AIC'] | ||
dfr2$BIC <- model2['BIC'] | ||
dfr <- rbind(dfr1, dfr2) | ||
dfr <- dfr[ order(dfr$Npars), ] | ||
dfr$Chisq <- NA | ||
dfr$df <- NA | ||
dfr$p <- NA | ||
dfr[1, 'Chisq'] <- dfr[1, 'Deviance'] - dfr[2, 'Deviance'] | ||
dfr[1, 'df'] <- abs(dfr[1, 'Npars'] - dfr[2, 'Npars']) | ||
dfr[1, 'p'] <- round(1 - stats::pchisq(dfr[1, 'Chisq'], df=dfr[1,'df']), 5) | ||
for (vv in 2L:(ncol(dfr))){ | ||
dfr[, vv] <- round(dfr[, vv], 5) | ||
} | ||
rownames(dfr) <- NULL | ||
invisible(dfr) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.