Learn R Programming

COUNT (version 1.3.2)

myTable: Frequency table

Description

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

Usage

myTable(x)

Arguments

x
the only argument is the name of the count variable

Value

  • xcount value
  • FreqFrequency of count
  • PropProportion
  • CumPropCumulative proportion

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).

References

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

See Also

modelfit

Examples

Run this code
data(medpar)
myTable(medpar$los)

Run the code above in your browser using DataLab