Package: optic 1.0.1
optic: Simulation Tool for Causal Inference Using Longitudinal Data
Implements a simulation study to assess the strengths and weaknesses of causal inference methods for estimating policy effects using panel data. See Griffin et al. (2021) <doi:10.1007/s10742-022-00284-w> and Griffin et al. (2022) <doi:10.1186/s12874-021-01471-y> for a description of our methods.
Authors:
optic_1.0.1.tar.gz
optic_1.0.1.zip(r-4.5)optic_1.0.1.zip(r-4.4)optic_1.0.1.zip(r-4.3)
optic_1.0.1.tgz(r-4.4-any)optic_1.0.1.tgz(r-4.3-any)
optic_1.0.1.tar.gz(r-4.5-noble)optic_1.0.1.tar.gz(r-4.4-noble)
optic_1.0.1.tgz(r-4.4-emscripten)optic_1.0.1.tgz(r-4.3-emscripten)
optic.pdf |optic.html✨
optic/json (API)
NEWS
# Install 'optic' in R: |
install.packages('optic', repos = c('https://randcorporation.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/randcorporation/optic/issues
- overdoses - OPTIC Overdoses example data.
causal-inferencediff-in-difflongitudinal-datasimulation
Last updated 1 years agofrom:43acc6a4d3. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 29 2024 |
R-4.5-win | OK | Oct 29 2024 |
R-4.5-linux | OK | Oct 29 2024 |
R-4.4-win | OK | Oct 29 2024 |
R-4.4-mac | OK | Oct 29 2024 |
R-4.3-win | OK | Oct 29 2024 |
R-4.3-mac | OK | Oct 29 2024 |
Exports:calculate_exposuredispatch_simulationsexposure_listmodel_termsoptic_modeloptic_simulation
Dependencies:abindbackportsBHbigmemorybigmemory.sriBMiscbootbroomcarcarDataclicodetoolscolorspacecorrplotcowplotcpp11data.tableDerivdiddigestdoBydplyrDRDIDfansifarverfastglmFormulafuturefuture.applygenericsggplot2ggpubrggrepelggsciggsignifglobalsgluegridExtragtableisobandlabelinglatticelifecyclelistenvlme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellnlmenloptrnnetnumDerivparallellypbapplypbkrtestpillarpkgconfigpolynompurrrquantregR6RColorBrewerRcppRcppArmadilloRcppEigenrlangrstatixsandwichscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttrustutf8uuidvctrsviridisLitewithrzoo
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Calculates the exposure rate applied to each year provided month of policy implementation and number of years to full implementation | calculate_exposure |
Execute simulations defined in a optic_simulation object | dispatch_simulations |
Applies a time-varying treatment effect | exposure_list |
Parse a formula object into its left-hand-side and right-hand-side components | model_terms |
Optic Model | optic_model |
Create a configuration object used to run simulations | optic_simulation |
OPTIC Overdoses example data. | overdoses |