ppc_brms  R Documentation 
Plot fitted versus observed values, including confidence interval (gray area) around best fit line (linear regression line) and prediction interval (dashed line).
ppc_brms(
object,
xtitle = "Observed value",
ytitle = "Fitted value",
dy = c(0.1, 0.1),
dx = c(0.1, 0.1),
cor = FALSE,
equation = FALSE,
xcor = NULL,
ycor = NULL,
xequ = NULL,
yequ = NULL,
...
)
object 
An object of class brmsfit 
xtitle 
The text for the xaxis title 
ytitle 
The text for the yaxis title 
dy 
Distance from plot to yaxis 
dx 
Distance from plot to xaxis 
cor 
If TRUE, add correlation coefficients with pvalues and R 
equation 
If TRUE, add regression line equation 
xcor , ycor 

xequ , yequ 

... 
Passed to 
A ggplot object
## Not run:
library(brms)
mod < brm(count ~ zAge + zBase * Trt + (1patient) + (1obs),
data = epilepsy,
family = poisson())
ppc_brms(mod)
ppc_brms(mod, dy = c(0.02, 0.1), dx = c(0.005, 0.1))
ppc_brms(mod, cor = TRUE, equation = TRUE, yequ = 100)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.