-
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
Robitzsch
committed
Aug 29, 2020
1 parent
6f7804c
commit a9f866e
Showing
211 changed files
with
5,497 additions
and
4,192 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: 3.10-31 | ||
Date: 2020-04-18 15:20:51 | ||
Version: 3.10-64 | ||
Date: 2020-08-29 14:27:25 | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## File Name: ccov_np_compute_ccov_sum_score.R | ||
## File Version: 0.10 | ||
|
||
ccov_np_compute_ccov_sum_score <- function(score, data, use_rcpp=TRUE) | ||
{ | ||
scores <- sort(unique(score)) | ||
wgt_score <- sirt_sum_norm(table(score)) | ||
NS <- length(scores) | ||
ccov_ff <- rep(NA,NS) | ||
if (!use_rcpp){ | ||
for (ss in 1:NS){ | ||
i1 <- which(score==scores[ss]) | ||
s1 <- stats::cov.wt(x=data[i1,], method="ML") | ||
ccov_ff[ss] <- s1$cov[1,2] | ||
} | ||
} else { | ||
index <- match(score, scores)-1 | ||
ccov_ff <- sirt_rcpp_ccov_np_compute_ccov_sum_score( index=index, | ||
NS=NS, data=as.matrix(data) ) | ||
} | ||
ccov_aggr <- sum(wgt_score*ccov_ff) | ||
res <- list(ccov_ff=ccov_ff, scores=scores, ccov_aggr=ccov_aggr) | ||
return(res) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## File Name: dexppow.R | ||
## File Version: 0.04 | ||
|
||
|
||
## copied from normalp::dnormp | ||
dexppow <- function (x, mu=0, sigmap=1, pow=2, log=FALSE) | ||
{ | ||
p <- pow | ||
cost <- 2 * p^(1/p) * gamma(1 + 1/p) * sigmap | ||
expon1 <- (abs(x - mu))^p | ||
expon2 <- p * sigmap^p | ||
dsty <- (1/cost) * exp(-expon1/expon2) | ||
if (log){ dsty <- log(dsty) } | ||
return(dsty) | ||
} |
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.