meaningfulLabels: Store meaningful parameter labels prior to running...

Description Usage Arguments Value

View source: R/meaningfulLabels.R

Description

Store meaningful parameter labels prior to running dag_greta() of greta::mcmc(). When greta creates posterior distributions for multi-dimensional parameters, it creates an often meaningless number system for the parameter (e.g. beta[1,1], beta[2,1], etc.). Since parameter dimensionality is often determined by a factor, this function creates labels from the factors unqiue values. replaceLabels() applies the text labels stored using this function to the greta output. The meaningful parameter names are stored in an environment, cacheEnv.

Usage

1

Arguments

graph

a causact_graph object.

Value

a data frame meaningfulLabels stored in an environment named cacheEnv that contains a lookup table between greta labels and meaningful labels.


causact documentation built on Jan. 26, 2021, 1:07 a.m.