replaceLabels {causact}R Documentation

Replace parameter labels in a mcmc.list with more meaningful labels after they are created by running dag_greta(). 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 functionality restores the text labels associated with the underlying factor whose coefficients are being estimated (e.g. beta_varValue1, beta_varValue2). The meaningful parameter names are stored in an environment, cacheEnv, created by a call to dag_greta().

Description

Replace parameter labels in a mcmc.list with more meaningful labels after they are created by running dag_greta(). 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 functionality restores the text labels associated with the underlying factor whose coefficients are being estimated (e.g. beta_varValue1, beta_varValue2). The meaningful parameter names are stored in an environment, cacheEnv, created by a call to dag_greta().

Usage

replaceLabels(draws)

Arguments

draws

an mcmc.list object created by dag_greta().

Value

an mcmc.list with more meanignful names that get created during a dag_greta function call.


[Package causact version 0.4.0 Index]