StatsWithR / statsr

Companion package for the Coursera Statistics with R specialization
Other
71 stars 83 forks source link

bayes_inference function #15

Closed jaekookang closed 3 years ago

jaekookang commented 3 years ago

Hi, I'm trying to run bayes_inference function under "4.1.5 Example: TTHM in Tapwater", but encountered an error. It seems that the type of arguments changed in the newer version of statsr package. Could you tell me how to change arguments from the previous instruction?

# This is the description in the book, which does not work.
bayes_inference(tthm, data=tapwater, prior="NG",
                mu_0 = m_0, n_0=n_0, s_0 = sqrt(s2_0), v_0 = v_0,
                stat="mean", type="ci", method="theoretical", 
                show_res=TRUE, show_summ=TRUE, show_plot=FALSE)
merliseclyde commented 3 years ago

the version used in the book was in the bayesfactor branch- this has now been merged with the master branch and an updated version has been submitted to CRAN

jaekookang commented 3 years ago

Thank you for the update. I really appreciate it.