get_model: Download pre-fit models

get_modelR Documentation

Download pre-fit models

Description

Download models for the book "Bayesian Multilevel Models for Repeated Measures Data" from the book GitHub page: https://github.com/santiagobarreda/bmmrmd/.

Usage

get_model(model_name)

Arguments

model_name

the file name to download. Models are named like this "chapterNumber_modelName.RDS", based on their name in the book.

Value

Returns the pre-fit brms model, loaded from an RDS file downloaded form GitHub.

Examples

## Not run: 
# Get the first model from chapter 3 like this:
get_model ("3_model.RDS")

# And the multinomial model from chapter 12 like this:
get_model ("12_model_multinomial.RDS")

## End(Not run)


santiagobarreda/bmmb documentation built on June 11, 2024, 5:33 p.m.