-
Notifications
You must be signed in to change notification settings - Fork 10
/
README.Rmd
65 lines (42 loc) · 1.88 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
title: "bmlm: R package for Bayesian multilevel mediation"
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{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 <https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started>.
## 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 [devtools](https://cran.r-project.org/package=devtools) for installation. If you don't have the devtools package installed in R, first run this line:
```r
install.packages("devtools")
```
Then proceed to install bmlm from GitHub:
```r
devtools::install_github("mvuorre/bmlm", args = "--preclean")
```
# 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")
```