FrederikBaumgarten / PhaenoFlex_clean

0 stars 0 forks source link

substract control from treatments to get effect sizes #6

Open FrederikBaumgarten opened 1 week ago

FrederikBaumgarten commented 1 week ago

@lizzieinvancouver : Can you check the this r file. I want to be sure that how I added the posteriors is correct. In the last block (graph 2, line 250). I subtract the control. Thats the critical step to check.

In this script, I checked if the posterior are added up correctly using a fake dataset and the same code. This seems to work perfectly.

Also, you mentioned some coding lines to get the 50 or 90 percent intervals, although I might have that already implemented...you will see...(I guess I can do that in line 180 when extracting the quantiles of the posterior distribution)

lizzieinvancouver commented 6 days ago

@FrederikBaumgarten this code includes plotting for thinner and thicker quantiles.

I need to run the code to check it but am getting these errors ... do you know what might cause them? (it pull, as I pushed).

posterior_draws <- as_draws_df(fit_1) Error in as_draws_df(fit_1) : could not find function "as_draws_df" str(posterior_draws) Error in str(posterior_draws) : object 'posterior_draws' not found