Giter Site home page Giter Site logo

bmlm's Introduction

bmlm: An R package for Bayesian MultiLevel Mediation models

bmlm is an R package providing convenient methods for Bayesian estimation of multilevel mediation models using Stan.

For more details, visit the package's website.

Install

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

install.packages("bmlm")

Development version

The latest development version of bmlm requires devtools for installation. If you don't have the devtools package installed in R, first run this line:

install.packages("devtools")

Then proceed to install bmlm:

devtools::install_github("mvuorre/bmlm", args = "--preclean")

Example

bmlm ships with an example data set from Intensive Longitudinal Methods: An Introduction to Diary and Experience Sampling Research (Bolger & Laurenceau, 2013, chapter 9). To estimate the multilevel mediation model presented in that chapter, run:

library(bmlm)
data(BLch9)
fit <- mlm(BLch9)

After a while, you will have a joint posterior distribution of plausible parameter values from the model applied to this data. Inspect the model:

mlm_summary(fit)

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:

citation("bmlm")
#> 
#> To cite package bmlm in publications, please use:
#> 
#>   Vuorre, M., (2016). bmlm: Bayesian Multilevel Mediation. R
#>   package version 1.2.1. https://cran.r-project.org/package=bmlm
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {bmlm: Bayesian Multilevel Mediation},
#>     author = {Matti Vuorre},
#>     year = {2016},
#>     url = {https://cran.r-project.org/package=bmlm},
#>   }

bmlm's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.