Displaying 1 result from an estimated 1 matches for "caterorical".
Did you mean:
categorical
2002 Aug 28
0
user defined function in rpart
...ven if my functions
are structured improperly, that should lead to an error in R (or
warning) not a seg fault.
If anyone has gotten this to work with survival objects i would
appreciate any tips. My test function is below. Note that there is
nothing for categorical cases because i am not using any caterorical
variables in my test.
Thanks Nicholas
tst.eval<-function(y, wt, parms){
dev<- sum(residuals(coxph(y~-1))^2)
list(label= sum(y[,2]), deviance=dev)
}
tst.split<-function(y, wt, x, parms, continuous){
xun<-sort(unique(x))
n <- nrow(y)
ndev<-sum(residuals(coxph(y~-1))^2...