evtree (version 1.0-2)

ContraceptiveChoice: Contraceptive Method Choice

Description

Data of married women who were either not pregnant or do not know if they were at the time of interview. The task is to predict the women's current contraceptive method choice (no use, long-term methods, short-term methods) based on her demographic and socio-economic characteristics.

Usage

data("ContraceptiveChoice")

Arguments

Format

A data frame containing 1,437 observations on 10 variables.

Source

This dataset is a subset of the 1987 National Indonesia Contraceptive Prevalence Survey and was created by Tjen-Sien Lim. It has been taken from the UCI Repository Of Machine Learning Databases at http://archive.ics.uci.edu/ml/.

References

Lim, T.-S., Loh, W.-Y. & Shih, Y.-S. (1999). A Comparison of Prediction Accuracy, Complexity, and Training Time of Thirty-three Old and New Classification Algorithms. Machine Learning, 40(3), 203--228.

Examples

Run this code
data("ContraceptiveChoice")
summary(ContraceptiveChoice)
## Not run: 
# set.seed(1090)
# contt <- evtree(contraceptive_method_used ~ . , data = ContraceptiveChoice) 
# contt
# table(predict(contt), ContraceptiveChoice$contraceptive_method_used)
# plot(contt)
# ## End(Not run)

Run the code above in your browser using DataLab