Displaying 1 result from an estimated 1 matches for "brides2".
Did you mean:
brides
2005 Oct 14
1
Predicting classification error from rpart
...ng
studied is known, and lives as a factor (M,F) in the data. I want to
get back predictions of gender, and particularly misclassification
rates.
rpart produces output like this :-
> printcp(rpart.LFM)
Classification tree:
rpart(formula = Sex ~ LFM, data = Brides2)
Variables actually used in tree construction: LFM
Root node error: 44/104 = 0.42308 n= 104
CP nsplit rel error xerror xstd
1 0.227273 0 1.00000 1.00000 0.11451
2 0.113636 1 0.77273 0.95455 0.11372
3 0.022727 2 0.65909 0.95455 0.11372
4 0.010000...