knitr::opts_chunk$set(echo = TRUE, eval = FALSE)
To eventually be put into a vignette?
Overall steps:
bamdat <- bam_data(w, h, s) # Creates an object that Stan can use plot(bamdat) bamest <- bam_estimate(data) mypriors <- bam_priors(cvQc = 0.5) # mylimits <- bam_limits(Q = c(0, 10000)) # <---- now including these in bam_priors bamest2 <- bam_estimate(data, priors = mypriors) plot(bamest$Q) plot(bamest$loglik)
bam_convergence(bamest) #use bayesplot package to diagnose convergence metrics bam_validate(bamest, qobs) # returns a list. Or an object with a plot() method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.