ht01.multipleclass: ht01.multipleclass data in Package 'HandTill2001'

Description Usage Format Details Source References Examples

Description

multiple class data and probability predictions thereof.

Usage

1

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

nkola123/kola documentation built on May 23, 2019, 9:05 p.m.