Re: [R] help with predict.rpart

2011-07-29 Thread Sarah Goslee
On Fri, Jul 29, 2011 at 11:26 AM, wrote: >        data=read.table("http://statcourse.com/research/boston.csv";, , > sep=",", header = TRUE) >        library(rpart) >        fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ > PT+B+LSTAT) >        predict(fit,data[4,]) > > plot only reve

Re: [R] help with predict.rpart

2011-07-29 Thread mark
 data=read.table("http://statcourse.com/research/boston.csv";, , sep=",", header = TRUE)  library(rpart)  fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ PT+B+LSTAT) predict(fit,data[4,]) plot only reveals part of the tree in contrast to the results on obtai