Package: dRiftDM 0.2.1
dRiftDM: Estimating (Time-Dependent) Drift Diffusion Models
Fit and explore Drift Diffusion Models (DDMs), a common tool in psychology for describing decision processes in simple tasks. It can handle both time-independent and time-dependent DDMs. You either choose prebuilt models or create your own, and the package takes care of model predictions and parameter estimation. Model predictions are derived via the numerical solutions provided by Richter, Ulrich, and Janczyk (2023, <doi:10.1016/j.jmp.2023.102756>).
Authors:
dRiftDM_0.2.1.tar.gz
dRiftDM_0.2.1.tar.gz(r-4.5-noble)dRiftDM_0.2.1.tar.gz(r-4.4-noble)
dRiftDM_0.2.1.tgz(r-4.4-emscripten)dRiftDM_0.2.1.tgz(r-4.3-emscripten)
dRiftDM.pdf |dRiftDM.html✨
dRiftDM/json (API)
NEWS
# Install 'dRiftDM' in R: |
install.packages('dRiftDM', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/bucky2177/driftdm/issues
Pkgdown site:https://bucky2177.github.io
- dmc_synth_data - A synthetic data set with two conditions
- ratcliff_synth_data - A synthetic data set with one condition
- ulrich_flanker_data - Exemplary Flanker Data
- ulrich_simon_data - Exemplary Simon Data
Last updated 2 days agofrom:b2cfb446b4. Checks:2 OK. Indexed: no.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Jan 08 2025 |
R-4.5-linux-x86_64 | OK | Jan 08 2025 |
Exports:b_codingb_coding<-calc_statscoef<-comp_funscomp_funs<-component_shelfcondsdmc_dmdrift_dmestimate_modelestimate_model_idsflex_prmsflex_prms<-get_example_fits_idsload_fits_idsmodify_flex_prmsobs_dataobs_data<-prms_solveprms_solve<-ratcliff_dmre_evaluate_modelsimulate_datasimulate_tracessimulate_valuessolversolver<-ssp_dmunpack_traces
Dependencies:clicrayonDEoptimdfoptimgluehmslifecyclepkgconfigprettyunitsprogressR6rbibutilsRcppRdpackrlangvctrswithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
The Coding of the Boundaries | b_coding b_coding.drift_dm b_coding.fits_ids_dm b_coding<- b_coding<-.drift_dm |
Calculate Statistics | calc_stats calc_stats.data.frame calc_stats.drift_dm calc_stats.fits_ids_dm |
Convenient Coefficients Access | coef.drift_dm coef.fits_ids_dm coef<- coef<-.drift_dm |
The Component Functions of A Model | comp_funs comp_funs.drift_dm comp_funs.fits_ids_dm comp_funs<- comp_funs<-.drift_dm |
Diffusion Model Components | component_shelf |
The Conditions of an Object | conds conds.data.frame conds.drift_dm conds.fits_ids_dm conds.traces_dm_list |
Create the Diffusion Model for Conflict Tasks | dmc_dm |
A synthetic data set with two conditions | dmc_synth_data |
Create a drift_dm object | drift_dm print.drift_dm |
Estimate the Parameters of a drift_dm Model | estimate_model |
Fit Multiple Individuals and Save Results | estimate_model_ids |
Flex_Prms | flex_prms flex_prms.drift_dm flex_prms.flex_prms flex_prms.numeric flex_prms<- flex_prms<-.drift_dm print.flex_prms |
Auxiliary Function to create a fits_ids object | get_example_fits_ids |
Plot Parameter Distribution(s) | hist.coefs_dm |
Load Estimates of a Fit Procedure | load_fits_ids print.fits_ids_dm |
Extract Log-Likelihood for a drift_dm Object | logLik.drift_dm |
Extract Model Statistics for fits_ids_dm Object | AIC.fits_ids_dm BIC.fits_ids_dm logLik.fits_ids_dm |
Set Instructions to a flex_prms object | modify_flex_prms modify_flex_prms.drift_dm modify_flex_prms.flex_prms |
Get the Number of Observations for a drift_dm Object | nobs.drift_dm |
The Observed Data | obs_data obs_data.drift_dm obs_data.fits_ids_dm obs_data<- obs_data<-.drift_dm |
Plot Conditional Accuracy Functions (CAFs) | plot.cafs |
Plot Delta Functions | plot.delta_funs |
Plot Components of a Drift Diffusion Model | plot.drift_dm |
Plot Multiple Statistics | plot.list_stats_dm |
Plot Quantiles | plot.quantiles |
Plot Traces of a Drift Diffusion Model | plot.traces_dm plot.traces_dm_list |
Summary and Printing for fits_ids_dm Objects | print.summary.fits_ids_dm summary.fits_ids_dm |
The Parameters for Deriving Model Predictions | prms_solve prms_solve.drift_dm prms_solve.fits_ids_dm prms_solve<- prms_solve<-.drift_dm |
Create a Basic Diffusion Model | ratcliff_dm |
A synthetic data set with one condition | ratcliff_synth_data |
Re-evaluate the model | re_evaluate_model |
Set Default Colors | set_default_colors |
Simulate Synthetic Responses | simulate_data simulate_data.drift_dm |
Simulate Trajectories/Traces of a Model | print.traces_dm print.traces_dm_list simulate_traces simulate_traces.drift_dm simulate_traces.fits_ids_dm |
Simulate Traces for One Conditions | simulate_traces_one_cond |
Simulate Values | simulate_values |
The Solver for Deriving Model Predictions | solver solver.drift_dm solver.fits_ids_dm solver<- solver<-.drift_dm |
Create the Shrinking Spotlight Model | ssp_dm |
Summary for 'drift_dm' Objects | print.summary.drift_dm summary.drift_dm |
Summarizing Flex Parameters | print.summary.flex_prms summary.flex_prms |
Exemplary Flanker Data | ulrich_flanker_data |
Exemplary Simon Data | ulrich_simon_data |
Unpack/Destroy Traces Objects | unpack_traces unpack_traces.traces_dm unpack_traces.traces_dm_list |