Package: optic 1.0.2
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.2.tar.gz
optic_1.0.2.zip(r-4.5)optic_1.0.2.zip(r-4.4)optic_1.0.2.zip(r-4.3)
optic_1.0.2.tgz(r-4.5-any)optic_1.0.2.tgz(r-4.4-any)optic_1.0.2.tgz(r-4.3-any)
optic_1.0.2.tar.gz(r-4.5-noble)optic_1.0.2.tar.gz(r-4.4-noble)
optic_1.0.2.tgz(r-4.4-emscripten)optic_1.0.2.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
Pkgdown site:https://randcorporation.github.io
- overdoses - OPTIC Overdoses example data.
causal-inferencediff-in-difflongitudinal-datasimulation
Last updated 2 months agofrom:140cdf5401. Checks:8 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Feb 15 2025 |
R-4.5-win | OK | Feb 15 2025 |
R-4.5-mac | OK | Feb 15 2025 |
R-4.5-linux | OK | Feb 15 2025 |
R-4.4-win | OK | Feb 15 2025 |
R-4.4-mac | OK | Feb 15 2025 |
R-4.3-win | OK | Feb 15 2025 |
R-4.3-mac | OK | Feb 15 2025 |
Exports:calculate_exposuredispatch_simulationsexposure_listmodel_termsoptic_modeloptic_simulation
Dependencies:abindbackportsBHbigmemorybigmemory.sriBMiscbootbroomcarcarDatacaretclasscliclockcodetoolscolorspacecorrplotcowplotcpp11data.tableDerivdiagramdiddigestdoBydplyrDRDIDe1071fansifarverfastglmforeachFormulafuturefuture.applygenericsggplot2ggpubrggrepelggsciggsignifglobalsgluegowergridExtragtablehardhatipredisobanditeratorsKernSmoothlabelinglatticelavalifecyclelistenvlme4lmtestlubridatemagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqaModelMetricsmodelrmunsellnlmenloptrnnetnumDerivparallellypbapplypbkrtestpillarpkgconfigplyrpolynompROCprodlimprogressrproxypurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackrecipesreformulasreshape2rlangrpartrstatixsandwichscalesshapeSparseMsparsevctrsSQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetrusttzdbutf8uuidvctrsviridisLitewithrzoo
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 |