Displaying 1 result from an estimated 1 matches for "computecatvector".
2009 May 29
1
final value of nnet with censored=TRUE for survival analysis
...x")))
d[,"time"] <- c(17,6,37,0,6,28,0,6,20,0,17,6,37,0,6,28,0,6,20,0)
d[,"status"] <- rep(c(0,1),5,each=2)
d[,"x"] <- c(0.27,0.27,0.49,0.49,0.61,0.70,0.78,0.78,0.84,0.86,0.27,0.27,0.49,0.49,0.61,0.70,0.78,0.78,0.84,0.86)
# compute cat-variable
cat <- computeCatVector(d, "time", "status") # => a matrix with one row for each row in d and a column for each distinct time value in d
# generated values for each row in d:
# if stat...