flyaflya / causact

causact: R package to accelerate computational Bayesian inference workflows in R through interactive visualization of models and their output.
http://causact.com
Other
43 stars 12 forks source link

Create dag_greta_20190522 and create dag_posterior #26

Closed Farlein closed 4 years ago

Farlein commented 5 years ago

Adam,

  1. I have updated a function dag_greta for your review.

    • A new parameter extraPara is added. A user can specify extra parameters in the model statement
    • If extraPara is not null, drawsDF_all is generated to include all parameters, drawsDF stays the same, and draws_extraDF is generated for the extra parameters
  2. I have created a function dag_posterior for your review.

    • The function does not work for a model with a plate node for now. A message is shown for this.
    • The function only works for three distributions, normal, Bernoulli, and Poisson
    • A message is shown if parameters in need are not estimated.

Thanks, Chuan