Learn R Programming

HandTill2001 (version 0.2-5)

ht01.multipleclass: ht01.multipleclass data in Package HandTill2001

Description

multiple class data and probability predictions thereof.

Usage

data(ht01.multipleclass)

Arguments

source

## From: Forensic glass example Venables and Ripley (2002) pp. 261--265 library(MASS);library(rpart);data(fgl);set.seed(123) fgl.rp4 <- rpart(type ~ ., data = fgl, cp = 0.03 , parms = list(split = "information")) ht01.multipleclass <- data.frame(observed = fgl$type, predict(fgl.rp4)) write.table(ht01.multipleclass, file = "ht01.multipleclass.txt")

Details

multiple class data ('observed': MASS::fgl$type) and probability predictions (predict(fgl.rp4), cf. Venables and Ripley (2002), p. 264 and Source) from rpart::rpart.

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.multipleclass)
str(ht01.multipleclass)

Run the code above in your browser using DataLab