-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release install instructions to README
- Loading branch information
Showing
3 changed files
with
85 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,26 +60,57 @@ bmm::supported_models() | |
|
||
## Installation | ||
|
||
Currently, we are working on getting the package ready to be submitted to CRAN. | ||
For now, you have to install the development version of bmm from | ||
[GitHub](https://github.com/) with: | ||
Currently, we are working on getting the package ready to be submitted | ||
to CRAN. Until then, you can install the latest version of the package | ||
from GitHub. | ||
|
||
You can install the latest beta release of bmm with: | ||
|
||
``` r | ||
# install.packages("devtools") | ||
devtools::install_github("venpopov/bmm") | ||
if (!requireNamespace("remotes")) { | ||
install.packages("remotes") | ||
} | ||
remotes::install_github("venpopov/bmm@*release") | ||
``` | ||
|
||
All the vignettes are also available on the [bmm | ||
This does not install the vignettes, which take a long time to build, | ||
but they are all available on the [bmm | ||
website](https://venpopov.github.io/bmm/). | ||
|
||
The package was significantly updated on Feb 03, 2024. If you are following | ||
older versions (earlier than Version 6) of the [Tutorial | ||
preprint](https://osf.io/preprints/psyarxiv/umt57), you need to install the | ||
0.0.1 version of the bmm package with: | ||
Because `bmm` is based on `brms` and `stan` it requires a working C++ | ||
compiler. If you are already using `brms`, you are good to go and can | ||
install the package as described above. If you are not using `brms` yet, | ||
we recommend the following steps: | ||
|
||
- Install and configure a C++ compiler. Detailed instructions | ||
[here](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#configuring-c-toolchain) | ||
- Install | ||
[rstan](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started) | ||
and/or | ||
[cmdstanr](https://mc-stan.org/cmdstanr/articles/cmdstanr.html). We | ||
recommend using `cmdstanr`. | ||
- Install [brms](https://paul-buerkner.github.io/brms/#installation) | ||
- Install `bmm` as described above | ||
|
||
You can also install the development version of bmm with: | ||
|
||
``` r | ||
# install.packages("devtools") | ||
devtools::install_github("venpopov/[email protected]") | ||
if (!requireNamespace("remotes")) { | ||
install.packages("remotes") | ||
} | ||
remotes::install_github("venpopov/bmm") | ||
``` | ||
|
||
The package was significantly updated on Feb 03, 2024. If you are | ||
following older versions (earlier than Version 6) of the [Tutorial | ||
preprint](https://osf.io/preprints/psyarxiv/umt57), you need to install | ||
the 0.0.1 version of the bmm package with: | ||
|
||
``` r | ||
if (!requireNamespace("remotes")) { | ||
install.packages("remotes") | ||
} | ||
remotes::install_github("venpopov/[email protected]") | ||
``` | ||
|
||
## The general structure of the bmm package | ||
|
@@ -103,7 +134,7 @@ end users. This way researchers that face challenges in writing their own STAN | |
code to implement such models themselves can still use these models in almost | ||
any experimental design. | ||
|
||
### Fitting models using the bmm | ||
## Fitting models using the bmm | ||
|
||
The core function of the bmm package is the `fit_model` function. This function | ||
takes: | ||
|
@@ -190,7 +221,7 @@ package](https://venpopov.github.io/bmm/articles/index.html) or [here for the | |
development version](https://venpopov.github.io/bmm/dev/articles/index.html). | ||
|
||
|
||
### Exploring cogntive measurement models | ||
## Exploring cogntive measurement models | ||
|
||
To aid users in improving their intuition about what different models predict | ||
for observed data given a certain parameter set, the `bmm` package also includes | ||
|
@@ -225,8 +256,6 @@ ggplot(data = simData, aes(x = x)) + | |
``` | ||
|
||
|
||
|
||
|
||
## Contributing to the `bmm` package | ||
|
||
Should be interested in contributing a model to the `bmm` package, you should | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,25 +65,56 @@ bmm::supported_models() | |
## Installation | ||
|
||
Currently, we are working on getting the package ready to be submitted | ||
to CRAN. For now, you have to install the development version of bmm | ||
from [GitHub](https://github.com/) with: | ||
to CRAN. Until then, you can install the latest version of the package | ||
from GitHub. | ||
|
||
You can install the latest beta release of bmm with: | ||
|
||
``` r | ||
# install.packages("devtools") | ||
devtools::install_github("venpopov/bmm") | ||
if (!requireNamespace("remotes")) { | ||
install.packages("remotes") | ||
} | ||
remotes::install_github("venpopov/bmm@*release") | ||
``` | ||
|
||
All the vignettes are also available on the [bmm | ||
This does not install the vignettes, which take a long time to build, | ||
but they are all available on the [bmm | ||
website](https://venpopov.github.io/bmm/). | ||
|
||
Because `bmm` is based on `brms` and `stan` it requires a working C++ | ||
compiler. If you are already using `brms`, you are good to go and can | ||
install the package as described above. If you are not using `brms` yet, | ||
we recommend the following steps: | ||
|
||
- Install and configure a C++ compiler. Detailed instructions | ||
[here](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#configuring-c-toolchain) | ||
- Install | ||
[rstan](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started) | ||
and/or | ||
[cmdstanr](https://mc-stan.org/cmdstanr/articles/cmdstanr.html). We | ||
recommend using `cmdstanr`. | ||
- Install [brms](https://paul-buerkner.github.io/brms/#installation) | ||
- Install `bmm` as described above | ||
|
||
You can also install the development version of bmm with: | ||
|
||
``` r | ||
if (!requireNamespace("remotes")) { | ||
install.packages("remotes") | ||
} | ||
remotes::install_github("venpopov/bmm") | ||
``` | ||
|
||
The package was significantly updated on Feb 03, 2024. If you are | ||
following older versions (earlier than Version 6) of the [Tutorial | ||
preprint](https://osf.io/preprints/psyarxiv/umt57), you need to install | ||
the 0.0.1 version of the bmm package with: | ||
|
||
``` r | ||
# install.packages("devtools") | ||
devtools::install_github("venpopov/[email protected]") | ||
if (!requireNamespace("remotes")) { | ||
install.packages("remotes") | ||
} | ||
remotes::install_github("venpopov/[email protected]") | ||
``` | ||
|
||
## The general structure of the bmm package | ||
|
@@ -104,7 +135,7 @@ cognitive measurement models for end users. This way researchers that | |
face challenges in writing their own STAN code to implement such models | ||
themselves can still use these models in almost any experimental design. | ||
|
||
### Fitting models using the bmm | ||
## Fitting models using the bmm | ||
|
||
The core function of the bmm package is the `fit_model` function. This | ||
function takes: | ||
|
@@ -192,7 +223,7 @@ package](https://venpopov.github.io/bmm/articles/index.html) or [here | |
for the development | ||
version](https://venpopov.github.io/bmm/dev/articles/index.html). | ||
|
||
### Exploring cogntive measurement models | ||
## Exploring cogntive measurement models | ||
|
||
To aid users in improving their intuition about what different models | ||
predict for observed data given a certain parameter set, the `bmm` | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.