losdata: Length-of-Stay (LOS) Hospital Data

losdataR Documentation

Length-of-Stay (LOS) Hospital Data

Description

A simple random sample of 70 patients in inpatient hospital treatment.

Usage

data(losdata)

Format

A data.frame with data on the following variables:

los

length of stay (days) [integer].

weight

sampling weight [double].

fpc

finite population correction [double].

Details

The losdata are a simple random sample without replacement (SRSWOR) of size n = 70 patients from the (fictive) population of N = 2479 patients in inpatient hospital treatment. We have constructed the losdata as a showcase; though, the LOS measurements are real data that we have taken from the 201 observations in Ruffieux et al. (2000). The original LOS data of Ruffieux et al. (2000) are available in the R package robustbase; see robustbase::data(los). Our losdata are a SRSWOR of size n = 70 from the 201 original observations.

Ruffieux et al. (2000) and data.frame los in the R package robustbase.

Source

Ruffieux, C., Paccaud, F. and Marazzi, A. (2000). Comparing rules for truncating hospital length of stay. Casemix Quarterly 2.

Examples

data(losdata)

## Not run: 
# survey design for losdata (pkg survey is required)
library(survey)
dn <- svydesign(ids = ~1, fpc = ~fpc, weights = ~weight, data = losdata)

## End(Not run)

robsurvey documentation built on Jan. 6, 2023, 5:09 p.m.