meaningfulLabels {causact}R Documentation

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.

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

meaningfulLabels(graph)

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.


[Package causact version 0.4.0 Index]