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 x-axis title |
ytitle |
The text for the y-axis title |
dy |
Distance from plot to y-axis |
dx |
Distance from plot to x-axis |
cor |
If TRUE, add correlation coefficients with p-values 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 + (1|patient) + (1|obs),
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.