Peter Flom
2003-Jul-21 14:43 UTC
[R] 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(YPSX + 1)]. This DV is better than YPSX because YPSX is extremely skew. However, the intuitively meaningful variable is YPSX. Is there a way to change the labels to reflect this? Thanks in advance, and sorry for the repeat Peter Peter L. Flom, PhD Assistant Director, Statistics and Data Analysis Core Center for Drug Use and HIV Research National Development and Research Institutes 71 W. 23rd St www.peterflom.com New York, NY 10010 (212) 845-4485 (voice) (917) 438-0894 (fax)
Possibly Parallel Threads
- Question re labels in r-part (continuation of a thread from a while back)
- some clarity Re: HFS+ resource forks: WIP patch included
- [Bug 1769] New: sftp displays size and transfer speed as "MB"; should use "MiB" for clarity
- Voice clarity issue
- [Bug 1825] New: ipv64_normalise_mapped()'s memset should use a4, not addr, for clarity