Description Usage Arguments Value See Also Examples
prepare_slopes
extracts the slopes needed for the forest plots from
the fitted model objects.
1 2 |
meta_obj1 |
A fitted meta-analytical model object whose global slopes and per-study effect sizes will be displayed on the plot. |
meta_obj2 |
An (optional) second fitted meta-analytical model object whose global slopes and per-study effect sizes will be displayed on the plot. |
list_extra_meta_obj |
A list of meta-analytical model objects to be used for displaying the global effects (either across all studies or in response to a fixed predictor). |
labels_obj1 |
A list of labels to be used for slopes extracted from
meta_obj1 object. This list is returned by the function |
labels_obj2 |
A list of labels to be used for slopes extracted from
meta_obj2 object. This list is returned by the function |
A list containing the slopes and other information required for the forest plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | ## Not run:
nb_cores <- 2L ## increase the number for using more cores
meta_Sel_phen <- fit_all(data = dat_Sel,
temperature = TRUE, precipitation = FALSE,
phenology = TRUE, morphology = FALSE,
condition = '3', nb_cores = nb_cores,
rand_trait = FALSE, fixed = NULL, digit = 3)
meta_Sel_morph <- fit_all(data = dat_Sel,
temperature = TRUE, precipitation = FALSE,
phenology = FALSE, morphology = TRUE,
condition = '3', nb_cores = nb_cores,
rand_trait = FALSE, fixed = NULL, digit = 3)
meta_Sel_phen_Fitn <- fit_all(data = dat_Sel,
temperature = TRUE, precipitation = FALSE,
phenology = TRUE, morphology = FALSE,
condition = '3', nb_cores = nb_cores,
rand_trait = FALSE, fixed = 'Fitness_Categ',
digit = 3)
test1 <- prepare_slopes(meta_obj1 = meta_Sel_phen$meta_res)
test2 <- prepare_slopes(meta_obj2 = meta_Sel_phen$meta_res)
test3 <- prepare_slopes(meta_obj1 = meta_Sel_phen$meta_res,
meta_obj2 = meta_Sel_morph$meta_res)
test4 <- prepare_slopes(meta_obj1 = meta_Sel_phen$meta_res,
list_extra_meta_obj =
list(meta_Sel_phen_Fitn$meta_res))
test5 <- prepare_slopes(meta_obj1 = meta_Sel_phen$meta_res,
meta_obj2 = meta_Sel_morph$meta_res,
list_extra_meta_obj =
list(meta_Sel_phen_Fitn$meta_res))
test6 <- prepare_slopes(meta_obj1 = meta_Sel_phen_Fitn$meta_res,
list_extra_meta_obj =
list(meta_Sel_morph$meta_res,
meta_Sel_phen$meta_res))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.