Description Format Details Source References Examples
Multiple class data and probability predictions thereof.
A data frame with 214 observations on the following 7 variables.
a factor with levels
Con
Head
Tabl
Veh
WinF
WinNF
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
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
.
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")
|
Venables, W. N and Ripley, B. D. (2002), Modern Applied Statistics with S (4th edition). Springer, ISBN 0-387-95457-0
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.