View source: R/translate_fit_for_predict_only.R
minimise_fit.jsodm_lv | R Documentation |
Translate fit object into a smaller object for using in a webapp
minimise_fit.jsodm_lv(fit, ndrawsample = NULL)
fit |
An object fitted by this package |
ndrawsample |
If non-null then the number of posterior draw samples to keep, must be less than the number of posterior samples in |
An object of the same class as fit
with nearly all data removed. Only data used for predictions remains.
fit <- readRDS("../Experiments/7_4_modelrefinement/fittedmodels/7_4_13_model_2lv_e13.rds") fit <- msod:::translatefit(fit) fit2 <- minimise_fit.jsodm_lv(fit) saveRDS(fit2, file = "../farm_biodiversity_app/data/model_data.rds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.