search for: duhray

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

2004 Mar 03
7
Location of polr function
...t an ordinal logistic regression model, using the polr function, as described in Venables and Ripley. But when I try model4 <- polr(ypsxcat~committed + as.factor(sex) + as.factor(drugusey) + anycsw + as.factor(sex)*committed + as.factor(sex)*as.factor(drugusey)+as.factor(sex)*anycsw, data = duhray) I get a message that the polr function was not found. Any help appreciated thanks 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 100...
2003 Dec 19
1
Question re labels in r-part (continuation of a thread from a while back)
...", 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.totpart.pruned$frame$yval)-1 tr.totpart.pruned$frame <- cbind(tr.totpart.pruned$frame, meanpart) and thought this was good because summary(tr.totpart.pruned...