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.

# S3 method for fit_model_bh_intra_location
check_model(x)

Arguments

x

outputs from model_bh_intra_location

Value

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

Details

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.

See also