Description Usage Arguments Details Value Author(s) See Also
View source: R/check_model.fit_model_bh_intra_location.R
check_model.fit_model_bh_intra_location
computes tests to assess if the model went well.
It is important to run this step before going ahead with the analysis otherwise you may make mistakes in the interpretation of the results.
1 2 | ## S3 method for class 'fit_model_bh_intra_location'
check_model(x)
|
x |
outputs from |
S3 method. The different test apply to the model are explained in the book here. Note that all environments where at least one parameter do not converge are not taken into account in the MCMC outputs.
It returns a list with the following elements:
MCMC : a data fame resulting from the concatenation of the two MCMC for each parameter (See details for more information).
MCMC_conv_not_ok : a data fame resulting from the concatenation of the two MCMC for each parameter for environment where some parameters did not converge for mu and beta
data_env_with_no_controls : data frame with environnement with no controls
data_env_whose_param_did_not_converge : a list with data frame with environments where some parameters did not converge for mu and beta.
data_ggplot a list containing information for ggplot:
sigma_j
mu_ij
beta_jk
sigma_j_2
epsilon_ijk
Pierre Riviere
check_model
plot.check_model_bh_intra_location
mean_comparisons
mean_comparisons.check_model_bh_intra_location
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.