Learn R Programming

HandTill2001 (version 1.0.3)

ht01.twoclass: Example Data for Binary Classes

Description

Binary class data and probability predictions thereof.

Arguments

Format

A data frame with 189 observations on the following 2 variables.

observed

a numeric vector

predicted

a numeric vector

Details

Binary class data ('observed': MASS::birthwt$low) and probability predictions (predict(birthwt.step2, type = "response"), cf. Venables and Ripley (2002), pp. 195f and ‘Source’) from stats::glm.

References

Venables, W. N and Ripley, B. D. (2002), Modern Applied Statistics with S (4th edition). Springer, ISBN 0-387-95457-0

Examples

Run this code

library(HandTill2001)
data(ht01.twoclass)
str(ht01.twoclass)

Run the code above in your browser using DataLab