File: print.step.r

package info (click to toggle)
r-cran-erm 1.0-6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,952 kB
  • sloc: f90: 401; ansic: 103; makefile: 8
file content (24 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
}