%>% |
The magrittr pipe |
addPriorGroups |
Add a column to tidy dataframe of draws that groups parameters by their prior distribution. All parameters with the same prior distribution recieve the same index. |
baseballData |
Dataframe of 12,145 observations of baseball games in 2010 |
beachLocDF |
Dataframe where each row represents data about one of the 26 mile markers (fake) from mile 0 to mile 2.5 along the Ocean City, MD beach/boardwalk. |
carModelDF |
Dataframe of 1000 (fake) observations of whether certain car buyers were willing to get information on a credit card speciailizing in rewards for adventure travellers. |
chimpanzeesDF |
Data from behavior trials in a captive group of chimpanzees, housed in Lousiana. From Silk et al. 2005. Nature 437:1357-1359 and further popularized in McElreath, Richard. Statistical rethinking: A Bayesian course with examples in R and Stan. CRC press, 2020. Experiment |
corruptDF |
Dataframe of 174 observations where information on the human developmet index (HDI) and the corruption perceptions index (CPI) both exist. Each observation is a country. |
dagp_plot |
Plot posterior distribution of latent parameters in 'causact_graph' model. |
dag_create |
Create a graph object focused on drawing a DAG. |
dag_diagrammer |
The graph object should be of class 'causact_graph' and created using 'dag_create()'. |
dag_dim |
Add dimension information to 'causact_graph' |
dag_edge |
Add an edge (or edges) between nodes in a graph object. |
dag_greta |
Generate a representive sample of the posterior distribution |
dag_merge |
Merge two non-intersect 'causact_graph' objects |
dag_node |
Add a node to an existing 'causact_graph' object |
dag_plate |
Create a plate representation for repeated nodes. |
dag_render |
Render the graph as an htmlwidget |
delivDF |
117,790 line items associated with 23,339 shipments. |
generate_dot2 |
Generate DOT code using a graph object |
grViz2 |
R + viz.js |
gymDF |
Dataframe of 44 observations of free crossfit classes data Each observation indicates how many students that participated in the free month of crossfit signed up for the monthly membership afterwards |
houseDF |
Dataframe of 1,460 observations of home sales in Ames, Iowa. Known as The Ames Housing dataset, it was compiled by Dean De Cock for use in data science education. Each observation is a home sale. See 'houseDFDescr' for more info. |
houseDFDescr |
Dataframe of 523 descriptions of data values from "The Ames Housing dataset", compiled by Dean De Cock for use in data science education. Each observation is a possible value from a varaible in the 'houseDF' dataset. |
meaningfulLabels |
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'. |
prodLineDF |
Product line and product category assignments for 12,026 partID's. |
rbern |
Make dbern,pbern,qbern,rbern available for implementation of the Bernoulli distribution functions. |
replaceLabels |
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()'. |
replace_in_spec2 |
Razor-like template for diagram specification |
schoolsDF |
This example, often referred to as 8-schools, was popularized by its inclusion in Bayesian Data Analysis (Gelman, Carlin, & Rubin 1997). |
setDirectedGraphTheme |
Set DiagrammeR defaults for graphical models |
ticketsDF |
Dataframe of 55,167 observations of the number of tickets written by NYC precincts each day Data modified from https://github.com/stan-dev/stancon_talks/tree/master/2018/Contributed-Talks/01_auerbach which originally sourced data from https://opendata.cityofnewyork.us/ |
totalBeachgoersRepSample |
A representative sample from a random variable that represents the annual number of beach goers to Ocean City, MD beaches on hot days. Think of this representative sample as coming from either a prior or posterior distribution. An example using this sample is can be found in The Business Analyst's Guide To Business Analytics at https://www.causact.com/. |