Displaying 1 result from an estimated 1 matches for "pnv22".
Did you mean:
pnv
2007 Dec 19
1
library(rpart) or library(tree)
Hi,
I have a problem with library (rpart) (and/or library(tree)).
I use a data.frame with variables
"pnV22" (observation: 1, 0 or yes, no)
"JTemp" (mean temperature)
"SNied" (summer rain)
I used function "rpart" to build a model:
library(rpart)
attach(data.frame)
result <- rpart(pnV22 ~ JTemp + SNied)
I got the following tree:
n=55518 (50 observations de...