R/print.step.r

Defines functions print.step

Documented in print.step

print.step <- function(x, ...)
{
  cat("\nResults for stepwise item elimination:\n")
  cat("Number of steps:",x$nsteps,"\n")

  if (!is.null(x$res.wald)) {
    cat("Criterion: Waldtest\n\n")
    print(round(x$res.wald, 3))
    cat("\n")
  }
  
  if (!is.null(x$res.itemfit)) {
    cat("Criterion: Itemfit\n\n")
    print(round(x$res.itemfit, 3))
    cat("\n")
  }
  
  if (!is.null(x$res.LR)) {
    cat("Criterion: Andersen's LR-test\n\n")
    print(round(x$res.LR, 3))
    cat("\n")
  }
  invisible(x)
}

Try the eRm package in your browser

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

eRm documentation built on May 29, 2024, 2:12 a.m.