lengthofstay: length of stay

Description Usage Format References Examples

Description

This data set contains the length of stay (in days) for 469 geriatric patients in a psychiatric hospital in northeast London in 1991. Harrison and Millard (1991) used a mixture of two exponential distributions in their analysis. The data frame has 469 rows and 1 column.

Usage

1
2
#Load this data set for subsequent analysis:
data(lengthofstay)

Format

This data frame contains one column,

length: length of stay for 469 geriatric patients in a psychiatric hospital.

References

Harrison G, Millard P (1991). Balancing acute and long-term care: the mathematics of throughput in departments of geriatric medicine. Methods of information in medicine, 30(3), 221–228.

Examples

1
2
3
4
5
#fit a 2 component exponential model to this data set, 
#plot the histogram of the observations and the fitted density.
data(lengthofstay)
out <- pmle.exp(lengthofstay,2,1)
plotmix.exp(lengthofstay,out)

MixtureInf documentation built on May 2, 2019, 3:32 p.m.