File: summary.PersonMisfit.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 (14 lines) | stat: -rwxr-xr-x 630 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ==========================================================================
# use summary function to return percentage of misfitting person of object x
# ==========================================================================

summary.MisfittingPersons <- function(object, ...)
  # summary method for object of class "MisfittingPersons" 
  # x = object of class "MisfittingPersons"
{
  cat("\n")
  cat(" Percentage of Misfitting Persons:", "\n", round(object$PersonMisfit,4), "%", "\n")
  cat(" (i.e.,", object$count.misfit.Z, "out of",  object$total.persons, "persons have Chi-square based Z-values > 1.96)")
  cat("\n")
}