Package: calmr 0.8.1

calmr: Canonical Associative Learning Models and their Representations

Implementations of canonical associative learning models, with tools to run experiment simulations, estimate model parameters, and compare model representations. Experiments and results are represented using S4 classes and methods.

Authors:Victor Navarro [aut, cre, cph]

calmr_0.8.1.tar.gz
calmr_0.8.1.zip(r-4.7)calmr_0.8.1.zip(r-4.6)calmr_0.8.1.zip(r-4.5)
calmr_0.8.1.tgz(r-4.6-any)calmr_0.8.1.tgz(r-4.5-any)
calmr_0.8.1.tar.gz(r-4.7-any)calmr_0.8.1.tar.gz(r-4.6-any)
calmr_0.8.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
calmr/json (API)
NEWS

# Install 'calmr' in R:
install.packages('calmr', repos = c('https://victor-navarro.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/victor-navarro/calmr/issues

Pkgdown/docs site:https://victornavarro.org

Datasets:
  • pati - Rat responses from Patittucci et al. 2016

On CRAN:

Conda:

6.63 score 3 stars 22 scripts 503 downloads 58 exports 47 dependencies

Last updated from:050acf0d61. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK185
source / vignettesOK292
linux-release-x86_64OK176
macos-release-arm64OK163
macos-oldrel-arm64OK184
windows-develOK127
windows-releaseOK125
windows-oldrelOK143
wasm-releaseOK126

Exports:aggregateAICBICcalmr_model_graphcalmr_verbositycompare_modelsdesignexperiencesexperiences<-filterfit_modelget_designget_graph_optsget_modelget_optimizer_optsget_parametersget_plot_optsget_timingsgraphmake_experimentmappingmodel_outputsmodel_parametersNLLparametersparameters<-parseparse_designparsed_resultspatch_graphspatch_plotsphase_parserplotplot_common_scaleplot_targeted_complex_trialsplot_targeted_tbinsplot_targeted_trialsplot_targeted_typed_trialsplot_tbinsplot_trialspredictraw_resultsresultsrsarunrun_experimentset_calmr_paletteset_reward_parametersshowsupported_familiessupported_modelssupported_optimizerssupported_plotssupported_timed_modelstesttimingstimings<-trials

Dependencies:clicodacodetoolscpp11crayondata.tabledigestfarverforeachfuturefuture.applyGAggnetworkggplot2ggrepelglobalsgluegtableigraphisobanditeratorslabelinglatticelifecyclelistenvmagrittrMatrixnetworkparallellypatchworkpillarpkgconfigprogressrR6RColorBrewerRcppRcppArmadillorlangS7scalessnastatnet.commontibbleutf8vctrsviridisLitewithr

ANCCR

Rendered fromANCCR.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-04-09
Started: 2024-02-28

calmr_app

Rendered fromcalmr_app.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-04-10
Started: 2023-01-30

calmr_fits

Rendered fromcalmr_fits.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-11-13
Started: 2022-12-12

directional_models

Rendered fromdirectional_models.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2025-07-07
Started: 2025-05-07

Getting started with calmr

Rendered fromcalmr.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-11-13
Started: 2024-04-08

HD2022

Rendered fromHD2022.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-03-10
Started: 2024-02-22

heidi_similarity

Rendered fromheidi_similarity.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-11-13
Started: 2022-03-03

MAC1975

Rendered fromMAC1975.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-03-10
Started: 2024-02-22

model_parameters

Rendered frommodel_parameters.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2025-05-10
Started: 2025-05-10

parallelism_in_calmr

Rendered fromparallelism_in_calmr.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2025-07-07
Started: 2024-02-27

PKH1982

Rendered fromPKH1982.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2025-05-07
Started: 2024-02-22

RAND

Rendered fromRAND.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-04-07
Started: 2024-02-24

RW1972

Rendered fromRW1972.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-03-10
Started: 2024-02-22

SM2007

Rendered fromSM2007.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-03-10
Started: 2024-02-22

TD

Rendered fromTD.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2025-05-10
Started: 2024-04-08

using_time_models

Rendered fromusing_time_models.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2024-11-13
Started: 2024-02-26

Readme and manuals

Help Manual

Help pageTopics
Create a graph with calmr datacalmr_model_graph get_graph_opts patch_graphs
Set verbosity options for calmrcalmr_verbosity
S4 class for calmr designsCalmrDesign-class
CalmrDesign methodsCalmrDesign-methods mapping mapping,CalmrDesign-method show,CalmrDesign-method trials,CalmrDesign-method
S4 class for calmr experiments.CalmrExperiment-class
CalmrExperiment methodsaggregate aggregate,CalmrExperiment-method CalmrExperiment-methods design design,CalmrExperiment-method experiences experiences,CalmrExperiment-method experiences<- experiences<-,CalmrExperiment-method filter filter,CalmrExperiment-method graph graph,CalmrExperiment-method length,CalmrExperiment-method parameters parameters,CalmrExperiment-method parameters<- parameters<-,CalmrExperiment-method parse parse,CalmrExperiment-method parsed_results parsed_results,CalmrExperiment-method plot plot,CalmrExperiment-method raw_results raw_results,CalmrExperiment-method results results,CalmrExperiment-method show,CalmrExperiment-method timings timings,CalmrExperiment-method timings<- timings<-,CalmrExperiment-method trials trials,CalmrExperiment-method
S4 class for calmr FitCalmrFit-class
CalmrFit methodsAIC AIC,CalmrFit-method BIC BIC,CalmrFit-method CalmrFit-methods NLL NLL,CalmrFit-method predict predict,CalmrFit-method show,CalmrFit-method
S4 class for calmr ModelsCalmrModel-class
CalmrModel methodsCalmrModel-methods graph,CalmrModel-method parameters,CalmrModel-method parameters<-,CalmrModel-method parse,CalmrModel-method parsed_results,CalmrModel-method plot,CalmrModel-method raw_results,CalmrModel-method run run,ANCCR-method run,CalmrModel-method run,HD2022-method run,HDI2020-method run,MAC1975-method run,PKH1982-method run,RAND-method run,RW1972-method run,SM2007-method run,TD-method show,CalmrModel-method
S4 class for calmr representational similarity analysisCalmrRSA-class
CalmrRSA methodsCalmrRSA-methods plot,CalmrRSA-method show,CalmrRSA-method test test,CalmrRSA-method
Run models given a set of parameterscompare_models
Fit model to datafit_model
Get basic designsget_design
Get optimizer optionsget_optimizer_opts
Get model parametersget_parameters
Get timing design parametersget_timings
Make CalmrExperimentmake_experiment
Model information functionsget_model model_information model_outputs model_parameters supported_families supported_models supported_optimizers supported_plots supported_timed_models
Parse design data.frameparse_design
Rat responses from Patittucci et al. 2016pati
Parses a phase stringphase_parser
General plotting functionsplotting_functions plot_targeted_complex_trials plot_targeted_tbins plot_targeted_trials plot_targeted_typed_trials plot_tbins plot_trials
General plotting optionsget_plot_opts patch_plots plotting_options plot_common_scale
Perform representational similarity analysisrsa
Run experimentrun_experiment
Get/set the colour/fill palette for plotsset_calmr_palette
Set reward parameters for ANCCR modelset_reward_parameters