|
100 | 100 | #' bias/DIF from group ability differences and detect test bias/DTF as well as item bias/DIF. |
101 | 101 | #' \emph{Psychometrika, 58}, 159-194. |
102 | 102 | #' |
| 103 | +#' @return a \code{data.frame} type object containing the SIBTEST results. Note that |
| 104 | +#' the \code{beta} coefficient for (G)CSIBTEST are reported as absolute values to |
| 105 | +#' reflect the sum of the respective area information above and below |
| 106 | +#' the estimated crossing locations |
| 107 | +#' |
103 | 108 | #' @examples |
104 | 109 | #' |
105 | 110 | #' \donttest{ |
@@ -494,7 +499,7 @@ SIBTEST <- function(dat, group, suspect_set, match_set, focal_name = unique(grou |
494 | 499 | sigma_cross <- NA |
495 | 500 | ret <- data.frame(focal_group=focal_name, n_matched_set=length(match_set), |
496 | 501 | n_suspect_set = length(suspect_set), |
497 | | - beta = c(beta_uni, beta_cross), SE=c(sigma_uni, NA), |
| 502 | + beta = c(beta_uni, abs(beta_cross)), SE=c(sigma_uni, NA), |
498 | 503 | X2=c(X2_uni, X2_cross), |
499 | 504 | df=c(1, df), p = c(p_uni, p_cross)) |
500 | 505 | rownames(ret) <- c('SIBTEST', 'CSIBTEST') |
@@ -716,13 +721,13 @@ SIBTEST <- function(dat, group, suspect_set, match_set, focal_name = unique(grou |
716 | 721 | if(nrow(C) == 1L){ |
717 | 722 | ret <- data.frame(n_matched_set=length(match_set), |
718 | 723 | n_suspect_set = length(suspect_set), |
719 | | - beta = c(beta_uni, beta_cross), |
| 724 | + beta = c(beta_uni, abs(beta_cross)), |
720 | 725 | X2=c(X2_uni, X2_cross), |
721 | 726 | df=c(1, NA), p = c(p_uni, NA)) |
722 | 727 | rownames(ret) <- c('GSIBTEST', 'GCSIBTEST') |
723 | 728 | class(ret) <- c('mirt_df', 'data.frame') |
724 | 729 | } else { |
725 | | - mat1 <- rbind(as.vector(beta_uni), beta_cross) |
| 730 | + mat1 <- rbind(as.vector(beta_uni), abs(beta_cross)) |
726 | 731 | colnames(mat1) <- paste0('beta_', 1:nrow(C)) |
727 | 732 | ret <- data.frame(n_matched_set=length(match_set), |
728 | 733 | n_suspect_set = length(suspect_set), |
|
0 commit comments