Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvuorre/bmlm

Bayesian multilevel mediation models in R
https://github.com/mvuorre/bmlm

bayesian-data-analysis cran multilevel-mediation-models r statistics

Last synced: about 17 hours ago
JSON representation

Bayesian multilevel mediation models in R

Awesome Lists containing this project

README

        

---
title: "bmlm: R package for Bayesian multilevel mediation"
output: github_document
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

# bmlm

[![CRAN version](https://www.r-pkg.org/badges/version/bmlm)](https://www.r-pkg.org/pkg/bmlm)
[![download-badge](https://cranlogs.r-pkg.org/badges/bmlm)](https://cran.r-project.org/package=bmlm)

**bmlm** is an R package providing convenient methods for Bayesian estimation of multilevel mediation models using [Stan](https://mc-stan.org/).

The package's source code is hosted on [GitHub](https://github.com/mvuorre/bmlm/). More information can be found on the [bmlm's website](https://mvuorre.github.io/bmlm/).

# Install

## Requirements

Please ensure you have the latest version of R installed. Windows users may need to install RTools, and OS X users may need to install XCode (see .

## Install from CRAN

To install the latest stable version of bmlm from CRAN, run

```r
install.packages("bmlm")
```

## Install from GitHub

Sometimes the stable version on CRAN is not the latest version of bmlm. bmlm is developed on GitHub, and users may obtain the latest (development) version from GitHub directly.

The latest development version of bmlm requires [remotes](https://cran.r-project.org/package=remotes) for installation. If you don't have the remotes package installed in R, first run this line:

```r
install.packages("remotes")
```

Then proceed to install bmlm from GitHub:

```r
remotes::install_github("mvuorre/bmlm")
```

# Information

Please contact the author of the package for questions and suggestions. I recommend creating a new issue on GitHub.

# Citation

If you use this software, please cite it:

```{r}
citation("bmlm")
```