search for: pred_train

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

2011 Mar 24
2
Questions for "domist... subscript out of bounds"
...R. I faced a questions about subscript out of bounds. Although I checked some other helps before I sent this email, I still don't know how to deal with this problems. I want to use "domain" function to run species distribution model in R. I used "sp.occ.do<-domain(env.pre, pred_train, factors=c('continent')) & sp.occ.pre.pro<-predict(env.pre, sp.occ.do)" to predict species distribution. BUT, I got  "Error in domdist(object, ln[j], vals[, ln[j]]) : subscript out of bounds" and could not run the domain model. How can I solve this problem? Thanks,...
2012 Jan 17
1
Scoring using cox model: probability of survival before time t
...e,event,x1,x2) fit_coxph <- coxph(Surv(time, event)~ x1 + x2, data= train_sample, method="breslow") #Save model to some directory save(fit_coxph, file = file.path("C:/Desktop","fit_coxph.RData")) #I can get probabilities on train_sample as below: library(peperr) pred_train <- predictProb.coxph(fit_coxph, Surv(train_sample$time, train_sample$event), train_sample, 0.4) head(pred_train) # [,1] #[1,] 5.126281e-03 #[2,] 4.324882e-01 #[3,] 4.444506e-61 #[4,] 0.000000e+00 #[5,] 0.000000e+00 #[6,] 3.249947e-01 #In the same line, I need probabilities on scor...