Learn R Programming

calmr

Canonical Associative Learning Models and their Representations

Installing the latest stable version

You may install the latest stable version from CRAN:

install.packages("calmr")

Installing the latest version

If you are feeling more daring, you can install the latest version of the package. You will need devtools to install this package from GitHub.

install.packages("devtools")
devtools::install_github("victor-navarro/calmr")

If you managed to build the vignettes, there's a vignette showing the basics of the package. (Worry not, the package's website also has it).

vignette("calmr_basics", package = "calmr")

If you want to do some simulations using the companion app, you must install the calmr.app package and then launch the app.

devtools::install_github("victor-navarro/calmr.app")
calmr.app::launch_app()

Try the online Shiny app

If you want to check the app without committing to an install, you can check it out here (be wary: the server might have run out of the free monthly quota).

https://victor-navarro.shinyapps.io/calmr_app/

Copy Link

Version

Install

install.packages('calmr')

Monthly Downloads

563

Version

0.7.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Victor Navarro

Last Published

May 11th, 2025

Functions in calmr (0.7.0)

set_calmr_palette

Get/set the colour/fill palette for plots
compare_models

Run models given a set of parameters
CalmrResult-class

S4 class for calmr results
calmr_model_graph

Create a graph with calmr data
run_experiment

Run experiment
calmr-package

calmr: Canonical Associative Learning Models and their Representations
get_design

Get basic designs
fit_model

Fit model to data
get_optimizer_opts

Get optimizer options
parse_design

Parse design data.frame
calmr_model_plot

Create a plot with calmr data
get_parameters

Get model parameters
model_information

Model information functions
get_timings

Get timing design parameters
pati

Rat responses from Patittucci et al. 2016
phase_parser

Parses a phase string
set_reward_parameters

Set reward parameters for ANCCR model
rsa

Perform representational similarity analysis
plotting_functions

General plotting functions
make_experiment

Make CalmrExperiment
CalmrFit-class

S4 class for calmr Fit
CalmrFit-methods

CalmrFit methods
CalmrExperiment-class

S4 class for calmr experiments.
CalmrDesign-class

S4 class for calmr designs
CalmrExperimentResult-class

S4 class for calmr experiment results
CalmrExperiment-methods

CalmrExperiment methods
calmr_verbosity

Set verbosity options for calmr
CalmrResult-methods

CalmrResult methods
CalmrRSA-methods

CalmrRSA methods
CalmrRSA-class

S4 class for calmr representational similarity analysis
CalmrDesign-methods

CalmrDesign methods