search for: anycsw

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

Did you mean: anycase
2004 Mar 03
7
Location of polr function
Hello I am running R 1.8.1 on a Windows platform I am attempting to fit 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...
2003 Dec 19
1
Question re labels in r-part (continuation of a thread from a while back)
...t.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.totpart.pruned$frame$yval)-1 tr.totpart.pruned$frame <- cbind(tr.totpart.pruned$frame, meanpart) and though...