brms: Bayesian Regression Models using Stan
Stanを利用した回帰分析モデル
- GitHub: https://github.com/paul-buerkner/brms
- CRAN: http://cran.r-project.org/web/packages/brms/index.html
- Vignettes:
> library(brms)
Loading required package: rstan
rstan (Version 2.8.1, packaged: 2015-11-18 17:18:35 UTC, GitRev: 05c3d0058b6a)
For execution on a local, multicore CPU with excess RAM we recommend calling
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
Attaching package: 'rstan'
The following object is masked from 'package:magrittr':
extract
Loading 'brms' package (version 0.6.0). Useful instructions
can be found by typing help('brms'). A more detailed introduction
to the package is available through vignette('brms').
Attaching package: 'brms'
The following objects are masked from 'package:lme4':
fixef, ngrps, ranef, VarCorr
バージョン: 0.6.0
関数名 | 概略 |
---|---|
LOO.brmsfit |
Compute LOO |
VarCorr |
Extract variance and correlation components |
WAIC |
Compute the WAIC |
brm |
Fit Bayesian Generalized Linear and Ordinal Mixed Models |
brms-package |
Bayesian Regression Models using Stan |
brmsfamily |
Special Family Functions for 'brms' Models |
brmsfit-class |
Class 'brmsfit' of fitted mixed-effect models |
cor_ar |
AR(p) correlation structure |
cor_arma |
ARMA(p,q) correlation structure |
cor_arr |
ARR(r) correlation structure |
cor_brms |
Correlation structure classes |
cor_ma |
MA(q) correlation structure |
epilepsy |
Epileptic seizure counts |
fitted.brmsfit |
Extract Model Fitted Values of 'brmsfit' Objects |
fixef |
Extract Fixed Effects Estimates |
get_prior |
Overview on Priors for 'brms' Models |
hypothesis |
Non-linear hypothesis testing |
inhaler |
Clarity of inhaler instructions |
kidney |
Infections in kidney patients |
launch_shiny |
Interface to 'shinystan' |
logLik.brmsfit |
Compute the pointwise log-likelihood |
macf |
Autocorrelation Function Estimation based on MCMC-Samples (experimental) |
make_stancode |
Stan Code for 'brms' Models |
make_standata |
Data for 'brms' Models |
ngrps |
Number of levels |
parnames |
Extract Parameter Names |
plot.brmsfit |
Trace and Density Plots for MCMC Samples |
posterior_samples |
Extract posterior samples |
predict.brmsfit |
Model Predictions of 'brmsfit' Objects |
print.brmsfit |
Print a summary for a fitted model represented by a 'brmsfit' object |
prior_samples |
Extract prior samples |
ranef |
Extract Random Effects for 'brmsfit' objects |
residuals.brmsfit |
Extract Model Residuals from brmsfit Objects |
set_prior |
Prior Definitions for 'brms' Models |
stancode |
Extract Stan Model Code |
standata |
Extract Data passed to Stan |
stanplot.brmsfit |
Various Plotting Functions implemented in 'rstan' |
summary.brmsfit |
Create a summary of a fitted model represented by a 'brmsfit' object |
update.brmsfit |
Update 'brms' models |
vcov.brmsfit |
Covariance and Correlation Matrix of Fixed Effects |