ssf_ind | R Documentation |
Apply ssf_mod to each individual of a dataset
ssf_ind(id, data, form_ls, cleanModel = F, method = "approximate")
id |
A vector indicating the individuals |
data |
The dataset containing all data |
form_ls |
A list of formulas for the different candidate models |
cleanModel |
Whether the model should be "cleaned" to save memory space (default = F) |
method |
Whether exact or approximate ML should be performed (see package survival) |
A list of of coxph objects
data(deer)
deer$log_sl<-log(deer$step_length)
ls2<-list()
ls2[[1]]<-as.formula(STATUS~forest+hummod+log_sl+strata(STRATA))
ls2[[2]]<-as.formula(STATUS~forest+log_sl+strata(STRATA))
out<-ssf_ind(deer$ID, data=deer, form_ls=ls2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.