kfold_ind_ssf | R Documentation |
Perform kfold cross-validation at the individual level and return histogram and mean kfold accross individual
kfold_ind_ssf(m = 1, mod_ls, ls = ls, cutoff = 0, k = 5, nrepet = 10, grph = T)
m |
model number (based on number in list of formula provided to rsf_ind) |
mod_ls |
A list of list of model generated by rsf_ind |
ls |
A list of list of formula fed into rsf_ind |
cutoff |
A cutoff value to exclude individuals with bad fit, default = -1 indicating model that did not converge will be excluded. Values > 0 will exclude based on coefficient |
k |
number of fold (default = 5) |
nrepet |
Number of repetitions (default =10) |
A vector of mean kfold score for each individual and an (optional) histogram
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)
kfold_ind_ssf(m=1, out, ls=ls1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.