R/full_routine_bootstrap.R
full_routine_bootstrap.RdThe function preprocess one single bootstrap sample of the original FOI data and fits a random forest model to it using the EM algorithm.
full_routine_bootstrap(parms, original_foi_data, adm_covariates, all_squares, covariates_names, boot_sample)
| parms | list of user-defined parameters. |
|---|---|
| original_foi_data | dataframe of the original foi estimates dataset at admin unit 1 resolution. |
| adm_covariates | dataframe of global covariates at admin unit 1 resolution. Default = NULL. |
| all_squares | dataframe of global covariates at 1/6 degree resolution. |
| covariates_names | character vector of covariates names. |
| boot_sample | dataframe of the bootstrapped dataset of foi estimates and covariates at admin unit 1 resolution (not pre-processed). |
the random forest model object returned by ranger.