myTable function

Frequency table

Frequency table

mytable is used to produce a table of frequencies, proportion and cumulative proportions for a count variable

myTable(x)

Arguments

  • x: the only argument is the name of the count variable

Details

myTable is used as either a diagnostic to view the distribution of a count variable, or as a frequency distribution display in its own right. myTable is given in Table 9.40 in Hilbe (2011).

Returns

  • x: count value

  • Freq: Frequency of count

  • Prop: Proportion

  • CumProp: Cumulative proportion

References

Hilbe, J.M. (2011), Negative Binomial Regression, second edition, Cambridge University Press. Hilbe, J.M. (2009), Logistic Regression Models, Chapman Hall/CRC

Author(s)

Joseph M. Hilbe, Arizona State University, and Jet Propulsion Laboratory, California Institute of Technology

See Also

modelfit

Examples

data(medpar) myTable(medpar$los)
  • Maintainer: Andrew Robinson
  • License: GPL-2
  • Last published: 2016-10-19

Useful links