get_occ_b: Get Arrays of Draws from Posterior for Each Parameter

View source: R/get_draws_for_parameter.R

get_occ_bR Documentation

Get Arrays of Draws from Posterior for Each Parameter

Description

Get Arrays of Draws from Posterior for Each Parameter

Usage

get_occ_b(fit, usesummary = NULL)

get_det_b(fit, usesummary = NULL)

get_det_re(fit, usesummary = NULL)

get_lv_v(fit, usesummary = NULL)

get_lv_b(fit, usesummary = NULL)

get_lv_v_spatscale(fit, usesummary = NULL)

get_lv_v_timescale(fit, usesummary = NULL)

Arguments

fit

Fitted model

usesummary

is either media, mean, an integer, or a function to apply across draws (it is applied using the apply function). An integer will select that draw. Chains are concatenated, so if there are 500 samples per chain then the 5th draw of the second chain can be selected by usesummary = 5 + 500. usesummary = NULL will not summarise the parameters.

Value

A named array with the final dimension corresponding to draws from the posterior.

Functions

  • get_det_b: Get detection loadings for external covariates.

  • get_det_re: Get the fitted detection random effects

  • get_lv_v: Get fitted latent variable values.

  • get_lv_b: Get fitted latent variable loadings.

  • get_lv_v_spatscale: Get fitted latent variable spatial correlation scale for jsodm_lv_sepexp model

  • get_lv_v_timescale: Get fitted latent variable temporal correlation scale for jsodm_lv_sepexp model


sustainablefarms/msod documentation built on March 6, 2023, 7:17 a.m.