Package: rmdl 0.1.0.9000

rmdl: A Causality-Informed Modeling Approach

A system for describing and manipulating the many models that are generated in causal inference and data analysis projects, as based on the causal theory and criteria of Austin Bradford Hill (1965) <doi:10.1177/003591576505800503>. This system includes the addition of formal attributes that modify base `R` objects, including terms and formulas, with a focus on variable roles in the "do-calculus" of modeling, as described in Pearl (2010) <doi:10.2202/1557-4679.1203>. For example, the definition of exposure, outcome, and interaction are implicit in the roles variables take in a formula. These premises allow for a more fluent modeling approach focusing on variable relationships, and assessing effect modification, as described by VanderWeele and Robins (2007) <doi:10.1097/EDE.0b013e318127181b>. The essential goal is to help contextualize formulas and models in causality-oriented workflows.

Authors:Anish S. Shah [aut, cre, cph]

rmdl_0.1.0.9000.tar.gz
rmdl_0.1.0.9000.zip(r-4.5)rmdl_0.1.0.9000.zip(r-4.4)rmdl_0.1.0.9000.zip(r-4.3)
rmdl_0.1.0.9000.tgz(r-4.4-any)rmdl_0.1.0.9000.tgz(r-4.3-any)
rmdl_0.1.0.9000.tar.gz(r-4.5-noble)rmdl_0.1.0.9000.tar.gz(r-4.4-noble)
rmdl_0.1.0.9000.tgz(r-4.4-emscripten)rmdl_0.1.0.9000.tgz(r-4.3-emscripten)
rmdl.pdf |rmdl.html
rmdl/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/shah-in-boots/rmdl/issues

On CRAN:

epidemiologymodelingstatistics

28 exports 2.13 score 23 dependencies 7 scripts 771 downloads

Last updated 4 months agofrom:a52c906674. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 26 2024
R-4.5-winOKAug 26 2024
R-4.5-linuxOKAug 26 2024
R-4.4-winOKAug 26 2024
R-4.4-macOKAug 26 2024
R-4.3-winOKAug 26 2024
R-4.3-macOKAug 26 2024

Exports:apply_direct_patternapply_fundamental_patternapply_parallel_patternapply_patternapply_rolling_interaction_patternapply_sequential_patternattach_datadescribeestimate_interactionfitflatten_modelsfmlsglanceis_dichotomousis_fmlsis_model_tableis_tmkey_termslabeled_formulas_to_named_listlhsmdlmdl_tblmodelmodel_tablenumber_of_missingrhstidytm

Dependencies:backportsbroomclicpp11dplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Getting Started

Rendered fromgetting_started.Rmdusingknitr::rmarkdownon Aug 26 2024.

Last update: 2024-04-29
Started: 2024-04-25

Readme and manuals

Help Manual

Help pageTopics
Data summarization and classification methodsdata_helpers is_dichotomous number_of_missing
Describe attributes of a 'tm' vectordescribe
Extending 'dplyr' for 'tm' classdplyr_extensions filter.tm
Estimating interaction effect estimatesestimate_interaction
Vectorized formulasfmls is_fmls key_terms
Tools for working with formula-like objectsformula_helpers lhs lhs.formula rhs rhs.formula
Convert labeling formulas to named listslabeled_formulas_to_named_list
Model tablesis_model_table mdl_tbl model_table
Model table helper functionsattach_data flatten_models model_table_helpers
Model Prototypesmdl mdl.character mdl.coxph mdl.default mdl.glm mdl.lm model models
Apply patterns to formulasapply_direct_pattern apply_fundamental_pattern apply_parallel_pattern apply_pattern apply_rolling_interaction_pattern apply_sequential_pattern patterns
Create vectorized termsis_tm tm tm.character tm.default tm.fmls tm.formula tm.tm
Update 'tm' objectsupdate.tm