Extract results from BT-SPAS-X bugs object

extract_bt_spas_x_results(model_fit_object)

Arguments

model_fit_object

the object produced by running run_single_bt_spas_x() for a given site and run year.

Value

a named list with the following elements:

  • posterior_output the posterior simulations produced by the BUGs object

  • summary_output the summary produced by the BUGs object

  • dic_output DIC for the BUGs object

  • knots_output the knot positions produced for the weekly abundance spline curve

Details

This function is called within run_single_bt_spas_x() and prepares spline parameters to pass to the data list. These are helpful for model diagnostics for a given model run.