https://github.com/cran/bayestestR
Tip revision: fe07bfa906d7e155439160caee538a3449cd3877 authored by Dominique Makowski on 08 April 2019, 08:42:41 UTC
version 0.1.0
version 0.1.0
Tip revision: fe07bfa
bayestestR.R
## ----echo=FALSE, fig.cap="Accurate depiction of a regular Bayesian user estimating a credible interval.", fig.align='center', out.width="50%"----
knitr::include_graphics("https://github.com/easystats/bayestestR/raw/master/man/figures/bayesianMaster.png")
## ----eval=FALSE, message=FALSE, warning=FALSE, eval=FALSE----------------
# install.packages("devtools")
# devtools::install_github("easystats/easystats")
## ----message=FALSE, warning=FALSE, eval=FALSE----------------------------
# install.packages("rstanarm")
# library(rstanarm)
## ----message=FALSE, warning=FALSE, eval=FALSE----------------------------
# model <- lm(Sepal.Length ~ Petal.Length, data=iris)
# summary(model)
## ----echo=FALSE, message=FALSE, warning=FALSE, comment=NA----------------
library(dplyr)
lm(Sepal.Length ~ Petal.Length, data=iris) %>%
summary()
## ----message=FALSE, warning=FALSE, eval=FALSE----------------------------
# model <- stan_glm(Sepal.Length ~ Petal.Length, data=iris)
# summary(model)
## ----echo=FALSE, message=FALSE, warning=FALSE, comment=NA, results='hide'----
library(rstanarm)
set.seed(333)
model <- stan_glm(Sepal.Length ~ Petal.Length, data=iris)
## ----echo=FALSE, message=FALSE, warning=FALSE, comment=NA----------------
model %>%
summary()