R/itemfit_control.R

Defines functions itemfit_control

Documented in itemfit_control

itemfit_control <- function(zstd=FALSE,
                            msq=TRUE,
                            outfits=TRUE,
                            use.pval=TRUE,
                            lowerMSQ=0.7,
                            upperMSQ=1.3,
                            lowerZ=-1.96,
                            upperZ=1.96,
                            use.rel=FALSE){
  #' options for test_itemfit()
  #' @param zstd a boolean value whether to check the standardised fit indices
  #' @param msq a boolean value whether to check the mean-squared fit indices
  #' @param use.pval a boolean value whether to exclude combinations with at
  #'  least one item with significant p-value
  #' @param outfits a boolean value whether to check outfit indices
  #'  (if FALSE, only infits are checked)
  #' @param lowerMSQ a numeric value for the lower bound for acceptable fit
  #'  (mean-squared fit indices)
  #' @param upperMSQ a numeric value for the upper bound for acceptable fit
  #'  (mean-squared fit indices)
  #' @param lowerZ a numeric value for the lower bound for acceptable fit
  #'  (standardised fit indices)
  #' @param upperZ a numeric value for the upper bound for acceptable fit
  #'  (standardised fit indices)
  #' @param use.rel a boolean value wheter to use the unweighted
  #' (default, FALSE) or weighted item fit indices for MSQ and z-standardised
  #'  fit-indices. Only available for 'pairwise' and 'psychotools' estiomation,
  #'  will be ignored, for 'eRm' estimation.
  #' @return a list containing the options
  #' @export

  return(list("zstd"= zstd, "msq"= msq, "outfits"= outfits,
              "use.pval"= use.pval, "lowerMSQ"= lowerMSQ,
              "upperMSQ"= upperMSQ, "lowerZ"= lowerZ, "upperZ"= upperZ,
              "use.rel"= use.rel))
}

Try the exhaustiveRasch package in your browser

Any scripts or data that you put into this service are public.

exhaustiveRasch documentation built on April 3, 2025, 6:18 p.m.