meaningfulLabels {causact}R Documentation

Store meaningful parameter labels

Description

[Experimental]

Store meaningful parameter labels as as part of running dag_numpyro(). When numpyro 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 numpyro 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.5.4 Index]