search for: sexfact

Displaying 2 results from an estimated 2 matches for "sexfact".

Did you mean: setfact
2003 Dec 19
1
Question re labels in r-part (continuation of a thread from a while back)
...l, which in this case is not what I want; I'd like the labels to be on the original metric, but label in text.rpart requires a "column name of x$frame", and the original DV is not on that frame. So, I tried the following: {create the tree} tr.totpart <- rpart(log(totpart +1) ~ sexfact + age + windle + eabused + as.factor(pabau) + positive + controlling + lenient + druguse.ever + anycsw, xval = 10, cp = 0.000000001, data = duhray) {prune the tree} tr.totpart.pruned <- prune (tr.totpart, cp = .02) {ad the original metric to the frame} meanpart <- exp(tr.t...
2003 Jul 21
0
Changing the labels on a regression tree (repeat post - with added clarity)
Hello I posted a very similar question last week, but the responses I received indicated that my post was unclear.... I have a regression tree created in rpart with tr.logypsx <- rpart(log(YPSX + 1) ~AGE+drugfact+sexfact+as.numeric(OBSX) +WINDLE + EABUSED + PABAU + positive.par + control.par + lenient.par, xval = 10, method = 'anova', cp = 0.0001, data = duhray2) and then tr.logypsx.pruned <- prune(tr.logypsx, cp = .012) The labels at the nodes are, naturally enough, the dependent variable [log...