tidy_mcmc_pofz: A helper function to tidy up the PofZ-like output from the...

View source: R/eca-internal-funcs.R

tidy_mcmc_pofzR Documentation

A helper function to tidy up the PofZ-like output from the gsi_mcmc functions

Description

This makes a tidy data frame of stuff, and also changes things back to factors, if the levels are provided.

Usage

tidy_mcmc_pofz(input, pname, car_tib, mix_indiv_tib)

Arguments

input

The output to tidy (i.e.. out$mean$PofZ)

pname

the name that you want the parameter to be called in the output

car_tib

a tibble with repunit and collection in the order they appear in the output

mix_indiv_tib

a tibble with the individuals in the order they appear in the output


benmoran11/rubias documentation built on Feb. 1, 2024, 10:52 p.m.