Learn R Programming

GLMsData (version 1.4)

kstones: Treating kidney stones

Description

Treatment of kidney stones

Usage

data(kstones)

Arguments

Format

A data frame with 8 observations on the following 4 variables.

Counts

the number of subjects in the given classification; a numeric vector

Size

whether the subject has kidney stones with mean diameter less than 2cm (coded as Small) or greater than or equal to 2cm (coded as Large); a factor with levels Large and Small

Method

the treatment method; a factor with levels A (open surgery) or B (percutaneous nephrolithotomy)

Outcome

the outcome of the stated treatment; a factor with levels Failure and Success

Details

The data give the success rates of two methods of treating kidney stones: open surgery methods, and percutaneous nephrolithotomy.

The given data are a subset of that reported by Charig et al. (1986), who also include two other methods of treatment, and also break up the open surgery methods into three sub-groups. The two methods here were chosen because they demonstrate Simpson's paradox.

Examples

Run this code
data(kstones)
summary(kstones)

Run the code above in your browser using DataLab