Package: cogmod 0.3.3
cogmod: Cognitive Models for Subjective Scales and Decision Making Tasks
Implements cognitive models for data from subjective (Likert or analog) scales and from decision making tasks with reaction times and choice data. Provides random generation, density functions, and custom response distributions for Bayesian estimation with 'brms', covering discrete beta, ordered beta and choice-confidence models for subjective ratings; reaction time distributions such as the ex-Gaussian and the shifted log-normal, Wald, gamma and Weibull; and sequential sampling models of choice and reaction time, including the drift diffusion model (DDM), the racing diffusion model (RDM), the lognormal race model (LNR) and the linear ballistic accumulator (LBA). The website provides examples and tutorials for using and interpreting the models. Methods are described in Ratcliff and McKoon (2008) <doi:10.1162/neco.2008.12-06-420>, Brown and Heathcote (2008) <doi:10.1016/j.cogpsych.2007.12.002>, Rouder et al. (2015) <doi:10.1007/s11336-013-9396-3>, Tillman et al. (2020) <doi:10.3758/s13423-020-01719-6>, Kubinec (2023) <doi:10.1017/pan.2022.20>, and Sciandra et al. (2024) <doi:10.1007/s10651-023-00592-5>.
Authors:
cogmod_0.3.3.tar.gz
cogmod_0.3.3.zip(r-4.7-any)cogmod_0.3.3.zip(r-4.6-any)cogmod_0.3.3.zip(r-4.5-any)
cogmod_0.3.3.tgz(r-4.6-any)cogmod_0.3.3.tgz(r-4.5-any)
cogmod_0.3.3.tar.gz(r-4.7-any)cogmod_0.3.3.tar.gz(r-4.6-any)
cogmod_0.3.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cogmod/json (API)
| # Install 'cogmod' in R: |
| install.packages('cogmod', repos = c('https://dominiquemakowski.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dominiquemakowski/cogmod/issues
Pkgdown/docs site:https://dominiquemakowski.github.io
- badlm - Simulated Data Where Linear Models Fail
analogbayesianbetabrmschoicecognitivecomputationalconfidenceddmdecisionlognormalmodelsneuropsychologypsychologyresponsertsamplingscalessequentialstan
Last updated from:991dd991e9. Checks:7 ERROR, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | ERROR | 359 | ||
| source / vignettes | OK | 325 | ||
| linux-release | ERROR | 356 | ||
| macos-release | ERROR | 230 | ||
| macos-oldrel | ERROR | 229 | ||
| windows-devel | ERROR | 377 | ||
| windows-release | ERROR | 354 | ||
| windows-oldrel | ERROR | 316 | ||
| wasm-release | OK | 174 |
Exports:cogmod_betadiscretecogmod_betadiscrete_lpmf_exposecogmod_betadiscrete_stanvarscogmod_betagatecogmod_betagate_lpdf_exposecogmod_betagate_stanvarscogmod_bisacogmod_bisa_lpdf_exposecogmod_bisa_stanvarscogmod_chococogmod_choco_lpdf_exposecogmod_choco_stanvarscogmod_ddmcogmod_ddm_lpdf_exposecogmod_ddm_stanvarscogmod_exgaussiancogmod_exgaussian_lpdf_exposecogmod_exgaussian_stanvarscogmod_exwaldcogmod_exwald_lpdf_exposecogmod_exwald_stanvarscogmod_gammacogmod_gamma_lpdf_exposecogmod_gamma_stanvarscogmod_gegcogmod_geg_lpdf_exposecogmod_geg_stanvarscogmod_initscogmod_inv_metriccogmod_invgammacogmod_invgamma_lpdf_exposecogmod_invgamma_stanvarscogmod_invgaussiancogmod_invgaussian_lpdf_exposecogmod_invgaussian_stanvarscogmod_invweibullcogmod_invweibull_lpdf_exposecogmod_invweibull_stanvarscogmod_lba1cogmod_lba1_lpdf_exposecogmod_lba1_stanvarscogmod_lba2cogmod_lba2_lpdf_exposecogmod_lba2_stanvarscogmod_lnrcogmod_lnr_lpdf_exposecogmod_lnr_stanvarscogmod_loggammacogmod_loggamma_lpdf_exposecogmod_loggamma_stanvarscogmod_lognormalcogmod_lognormal_lpdf_exposecogmod_lognormal_stanvarscogmod_logstudentcogmod_logstudent_lpdf_exposecogmod_logstudent_stanvarscogmod_logweibullcogmod_logweibull_lpdf_exposecogmod_logweibull_stanvarscogmod_priorscogmod_rdmcogmod_rdm_lpdf_exposecogmod_rdm_stanvarscogmod_stanvarscogmod_step_sizecogmod_warmstartcogmod_weibullcogmod_weibull_lpdf_exposecogmod_weibull_stanvarsdcogmod_betadiscretedcogmod_betagatedcogmod_bisadcogmod_chocodcogmod_ddmdcogmod_exgaussiandcogmod_exwalddcogmod_gammadcogmod_gegdcogmod_invgammadcogmod_invgaussiandcogmod_invweibulldcogmod_lba1dcogmod_lba2dcogmod_lnrdcogmod_loggammadcogmod_lognormaldcogmod_logstudentdcogmod_logweibulldcogmod_rdmdcogmod_weibulllog_lik_cogmod_betadiscretelog_lik_cogmod_betagatelog_lik_cogmod_bisalog_lik_cogmod_chocolog_lik_cogmod_ddmlog_lik_cogmod_exgaussianlog_lik_cogmod_exwaldlog_lik_cogmod_gammalog_lik_cogmod_geglog_lik_cogmod_invgammalog_lik_cogmod_invgaussianlog_lik_cogmod_invweibulllog_lik_cogmod_lba1log_lik_cogmod_lba2log_lik_cogmod_lnrlog_lik_cogmod_loggammalog_lik_cogmod_lognormallog_lik_cogmod_logstudentlog_lik_cogmod_logweibulllog_lik_cogmod_rdmlog_lik_cogmod_weibullp_outlierpcogmod_betadiscretepcogmod_bisapcogmod_ddmpcogmod_exgaussianpcogmod_gammapcogmod_gegpcogmod_invgammapcogmod_invgaussianpcogmod_invweibullpcogmod_lognormalpcogmod_logstudentpcogmod_logweibullpcogmod_rdmpcogmod_weibullposterior_epred_cogmod_betadiscreteposterior_epred_cogmod_betagateposterior_epred_cogmod_bisaposterior_epred_cogmod_chocoposterior_epred_cogmod_ddmposterior_epred_cogmod_exgaussianposterior_epred_cogmod_exwaldposterior_epred_cogmod_gammaposterior_epred_cogmod_gegposterior_epred_cogmod_invgammaposterior_epred_cogmod_invgaussianposterior_epred_cogmod_invweibullposterior_epred_cogmod_lba1posterior_epred_cogmod_lba2posterior_epred_cogmod_lnrposterior_epred_cogmod_loggammaposterior_epred_cogmod_lognormalposterior_epred_cogmod_logstudentposterior_epred_cogmod_logweibullposterior_epred_cogmod_rdmposterior_epred_cogmod_weibullposterior_predict_cogmod_betadiscreteposterior_predict_cogmod_betagateposterior_predict_cogmod_bisaposterior_predict_cogmod_chocoposterior_predict_cogmod_ddmposterior_predict_cogmod_exgaussianposterior_predict_cogmod_exwaldposterior_predict_cogmod_gammaposterior_predict_cogmod_gegposterior_predict_cogmod_invgammaposterior_predict_cogmod_invgaussianposterior_predict_cogmod_invweibullposterior_predict_cogmod_lba1posterior_predict_cogmod_lba2posterior_predict_cogmod_lnrposterior_predict_cogmod_loggammaposterior_predict_cogmod_lognormalposterior_predict_cogmod_logstudentposterior_predict_cogmod_logweibullposterior_predict_cogmod_rdmposterior_predict_cogmod_weibullqcogmod_betadiscreteqcogmod_rdmrcogmod_betadiscretercogmod_betagatercogmod_bisarcogmod_chocorcogmod_ddmrcogmod_exgaussianrcogmod_exwaldrcogmod_gammarcogmod_gegrcogmod_invgammarcogmod_invgaussianrcogmod_invweibullrcogmod_lba1rcogmod_lba2rcogmod_lnrrcogmod_loggammarcogmod_lognormalrcogmod_logstudentrcogmod_logweibullrcogmod_rdmrcogmod_weibullwith_outlierswithout_outliers
Dependencies:abindbackportsbayesplotBHbridgesamplingbrmsBrobdingnagcallrcheckmateclicodacodetoolscpp11descdigestdistributionaldplyrfarverfuturefuture.applygenericsggdistggplot2ggridgesglobalsgluegridExtragtableinlineinsightisobandlabelinglatticelifecyclelistenvloomagrittrMatrixmatrixStatsmgcvmvtnormnleqslvnlmenumDerivotelparallellypillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrquadprogQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanrstantoolsS7scalesStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Simulated Data Where Linear Models Fail | badlm |
| Starting values that keep the sampler out of the flat regions | cogmod_inits |
| Priors that make a cogmod posterior proper | cogmod_priors |
| The Stan code a cogmod family needs, read off the model | cogmod_stanvars |
| Warm-start a fit from a previous one: metric, step size and starting values | as.data.frame.cogmod_warmstart cogmod_inv_metric cogmod_step_size cogmod_warmstart print.cogmod_warmstart |
| Per-trial outlier probabilities | p_outlier |
| Discrete Beta Model | cogmod_betadiscrete cogmod_betadiscrete_lpmf_expose cogmod_betadiscrete_stanvars dcogmod_betadiscrete log_lik_cogmod_betadiscrete pcogmod_betadiscrete posterior_epred_cogmod_betadiscrete posterior_predict_cogmod_betadiscrete qcogmod_betadiscrete rcogmod_betadiscrete |
| Beta-Gate Model | cogmod_betagate cogmod_betagate_lpdf_expose cogmod_betagate_stanvars dcogmod_betagate log_lik_cogmod_betagate posterior_epred_cogmod_betagate posterior_predict_cogmod_betagate rcogmod_betagate |
| Shifted Birnbaum-Saunders (Fatigue Life) Model | cogmod_bisa cogmod_bisa_lpdf_expose cogmod_bisa_stanvars dcogmod_bisa log_lik_cogmod_bisa pcogmod_bisa posterior_epred_cogmod_bisa posterior_predict_cogmod_bisa rcogmod_bisa |
| Choice-Confidence (CHOCO) Model | cogmod_choco cogmod_choco_lpdf_expose cogmod_choco_stanvars dcogmod_choco log_lik_cogmod_choco posterior_epred_cogmod_choco posterior_predict_cogmod_choco rcogmod_choco |
| Drift Diffusion Model (DDM) | cogmod_ddm cogmod_ddm_lpdf_expose cogmod_ddm_stanvars dcogmod_ddm log_lik_cogmod_ddm pcogmod_ddm posterior_epred_cogmod_ddm posterior_predict_cogmod_ddm rcogmod_ddm |
| Ex-Gaussian Model (Classical Parameterization) | cogmod_exgaussian cogmod_exgaussian_lpdf_expose cogmod_exgaussian_stanvars dcogmod_exgaussian log_lik_cogmod_exgaussian pcogmod_exgaussian posterior_epred_cogmod_exgaussian posterior_predict_cogmod_exgaussian rcogmod_exgaussian |
| Shifted Ex-Wald Model | cogmod_exwald cogmod_exwald_lpdf_expose cogmod_exwald_stanvars dcogmod_exwald log_lik_cogmod_exwald posterior_epred_cogmod_exwald posterior_predict_cogmod_exwald rcogmod_exwald |
| Shifted Gamma Model | cogmod_gamma cogmod_gamma_lpdf_expose cogmod_gamma_stanvars dcogmod_gamma log_lik_cogmod_gamma pcogmod_gamma posterior_epred_cogmod_gamma posterior_predict_cogmod_gamma rcogmod_gamma |
| Generalised Ex-Gaussian (GEG) Distribution | cogmod_geg cogmod_geg_lpdf_expose cogmod_geg_stanvars dcogmod_geg log_lik_cogmod_geg pcogmod_geg posterior_epred_cogmod_geg posterior_predict_cogmod_geg rcogmod_geg |
| Shifted Inverse Gamma Model | cogmod_invgamma cogmod_invgamma_lpdf_expose cogmod_invgamma_stanvars dcogmod_invgamma log_lik_cogmod_invgamma pcogmod_invgamma posterior_epred_cogmod_invgamma posterior_predict_cogmod_invgamma rcogmod_invgamma |
| Shifted Wald Model (Inverse Gaussian) | cogmod_invgaussian cogmod_invgaussian_lpdf_expose cogmod_invgaussian_stanvars dcogmod_invgaussian log_lik_cogmod_invgaussian pcogmod_invgaussian posterior_epred_cogmod_invgaussian posterior_predict_cogmod_invgaussian rcogmod_invgaussian |
| Shifted Inverse Weibull Model | cogmod_invweibull cogmod_invweibull_lpdf_expose cogmod_invweibull_stanvars dcogmod_invweibull log_lik_cogmod_invweibull pcogmod_invweibull posterior_epred_cogmod_invweibull posterior_predict_cogmod_invweibull rcogmod_invweibull |
| Shifted Single-Accumulator LBA Model | cogmod_lba1 cogmod_lba1_lpdf_expose cogmod_lba1_stanvars dcogmod_lba1 LATER log_lik_cogmod_lba1 posterior_epred_cogmod_lba1 posterior_predict_cogmod_lba1 rcogmod_lba1 recinormal |
| Two-Accumulator Linear Ballistic Accumulator (LBA) Model | cogmod_lba2 cogmod_lba2_lpdf_expose cogmod_lba2_stanvars dcogmod_lba2 log_lik_cogmod_lba2 posterior_epred_cogmod_lba2 posterior_predict_cogmod_lba2 rcogmod_lba2 |
| Log-Normal Race (LNR) Model | cogmod_lnr cogmod_lnr_lpdf_expose cogmod_lnr_stanvars dcogmod_lnr log_lik_cogmod_lnr posterior_epred_cogmod_lnr posterior_predict_cogmod_lnr rcogmod_lnr |
| Shifted Log-Gamma (Generalized Gamma) Model | cogmod_loggamma cogmod_loggamma_lpdf_expose cogmod_loggamma_stanvars dcogmod_loggamma log_lik_cogmod_loggamma posterior_epred_cogmod_loggamma posterior_predict_cogmod_loggamma rcogmod_loggamma |
| Shifted LogNormal Model | cogmod_lognormal cogmod_lognormal_lpdf_expose cogmod_lognormal_stanvars dcogmod_lognormal log_lik_cogmod_lognormal pcogmod_lognormal posterior_epred_cogmod_lognormal posterior_predict_cogmod_lognormal rcogmod_lognormal |
| Shifted Log-Student-t Model | cogmod_logstudent cogmod_logstudent_lpdf_expose cogmod_logstudent_stanvars dcogmod_logstudent log_lik_cogmod_logstudent pcogmod_logstudent posterior_epred_cogmod_logstudent posterior_predict_cogmod_logstudent rcogmod_logstudent |
| Shifted Log-Weibull Model | cogmod_logweibull cogmod_logweibull_lpdf_expose cogmod_logweibull_stanvars dcogmod_logweibull log_lik_cogmod_logweibull pcogmod_logweibull posterior_epred_cogmod_logweibull posterior_predict_cogmod_logweibull rcogmod_logweibull |
| Two-Accumulator Racing Diffusion Model (RDM) | cogmod_rdm cogmod_rdm_lpdf_expose cogmod_rdm_stanvars dcogmod_rdm log_lik_cogmod_rdm pcogmod_rdm posterior_epred_cogmod_rdm posterior_predict_cogmod_rdm qcogmod_rdm rcogmod_rdm |
| Shifted Weibull Model | cogmod_weibull cogmod_weibull_lpdf_expose cogmod_weibull_stanvars dcogmod_weibull log_lik_cogmod_weibull pcogmod_weibull posterior_epred_cogmod_weibull posterior_predict_cogmod_weibull rcogmod_weibull |
| Include or exclude the outlier component in predictions | without_outliers with_outliers |