-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adam Fleischhacker
authored and
Adam Fleischhacker
committed
Aug 9, 2023
1 parent
f903784
commit c6c8b11
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
test_that("gamma Dist in Use", { | ||
graph = dag_create() %>% | ||
dag_node("Tree Height","x", | ||
rhs = student(nu,mu,sigma), | ||
data = trees$Height) %>% | ||
dag_node("Degrees Of Freedom","nu", | ||
rhs = gamma(2,0.1), | ||
child = "x") %>% | ||
dag_node("Avg Cherry Tree Height","mu", | ||
rhs = normal(50,24.5), | ||
child = "x") %>% | ||
dag_node("StdDev of Observed Height","sigma", | ||
rhs = uniform(0,50), | ||
child = "x") %>% | ||
dag_plate("Observation","i", | ||
nodeLabels = "x") | ||
mcmcCode = graph %>% dag_numpyro(mcmc = FALSE) | ||
expect_type(mcmcCode, "character") | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters