ht01.multipleclass: Example Data for Multiple Classes

Description Format Details Source References Examples

Description

Multiple class data and probability predictions thereof.

Format

A data frame with 214 observations on the following 7 variables.

observed

a factor with levels Con Head Tabl Veh WinF WinNF

WinF

a numeric vector

WinNF

a numeric vector

Veh

a numeric vector

Con

a numeric vector

Tabl

a numeric vector

Head

a numeric vector

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.

Source

1
2
3
4
5
6
 ## 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") 

References

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

Examples

1
2
3

HandTill2001 documentation built on Nov. 2, 2020, 5:07 p.m.