ht01.multipleclass {HandTill2001} | R Documentation |
Example Data for Multiple Classes
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
## 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
library(HandTill2001)
data(ht01.multipleclass)
str(ht01.multipleclass)
[Package HandTill2001 version 1.0.1 Index]