Description Usage Format References Examples
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.
1 2 | #Load this data set for subsequent analysis:
data(lengthofstay)
|
This data frame contains one column,
length: length of stay for 469 geriatric patients in a psychiatric hospital.
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.