Description Usage Arguments Details
View source: R/functions_exposure_model.R
Different plots of the concentrations modelled in the exposure model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | plot_exposure_means_bytime(
stanfit,
standata,
include_time = TRUE,
include_reI = TRUE,
exp_transform = FALSE,
group_names = paste0("Group ", 1:standata$G)
)
plot_exposure_means_boxplot(
stanfit,
standata,
include_time = TRUE,
include_reI = TRUE,
exp_transform = FALSE,
one_per_person = !include_time,
group_names = paste0("Group ", 1:standata$G)
)
|
stanfit |
Fitted STAN model object containing posterior samples of parameters; from |
standata |
List containing model structure information corresponding to |
include_time |
Logical indicator of whether time should be included. |
include_reI |
Logical indicator of whether the unit-level random effect should be included. |
exp_transform |
Logical indicator of whether concentrations should be exponentiated. |
group_names |
Names of groups to use in plot labels |
one_per_person |
Logical indicator of whether a single observation per unit should be included. If |
Uses ggplot
to create plots of concentrations using posterior means of model parameters. The graphical object is returned and can be customized if needed.
Both functions are wrappers around compute_fitted_mean()
and first call that function to compute the posterior mean for each observation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.