Package: optic 1.2.8
optic: Simulation Tool for Causal Inference Using Longitudinal Data
Provides a simulation framework for evaluation of causal inference methods using real 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.2.8.tar.gz
optic_1.2.8.zip(r-4.7)optic_1.2.8.zip(r-4.6)optic_1.2.8.zip(r-4.5)
optic_1.2.4.tgz(r-4.6-any)optic_1.2.4.tgz(r-4.5-any)
optic_1.2.4.tar.gz(r-4.7-any)optic_1.2.8.tar.gz(r-4.6-any)
optic_1.2.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
optic/json (API)
| # 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/docs site:https://randcorporation.github.io
- overdoses - OPTIC Overdoses example data.
causal-inferencediff-in-difflongitudinal-datasimulation
Last updated from:ca2868a989. Checks:5 FAIL, 1 ERROR, 3 WARNING. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | FAIL | 130 | ||
| source / vignettes | ERROR | 229 | ||
| linux-release-x86_64 | FAIL | 125 | ||
| macos-release-arm64 | FAIL | 100 | ||
| macos-oldrel-arm64 | FAIL | 112 | ||
| windows-devel | WARNING | 149 | ||
| windows-release | WARNING | 155 | ||
| windows-oldrel | WARNING | 150 | ||
| wasm-release | FAIL | 124 |
Exports:calculate_exposuredispatch_simulationsexposure_listmodel_termsoptic_modeloptic_simulationsim_biassim_correct_rejection_ratesim_correction_factorsim_coveragesim_msesim_rejection_ratesim_type_s_errorsummarize_simulation
Dependencies:BHbigmemorybigmemory.sriBMiscclicodetoolscpp11data.tablediddigestdplyrDRDIDdreamerrfarverfastglmFormulafuturefuture.applygenericsggplot2globalsgluegtableisobandlabelinglatticelifecyclelistenvlmtestmagrittrMASSMatrixparallellypbapplypillarpkgconfigprogressrpurrrR6RColorBrewerRcppRcppArmadilloRcppEigenrlangS7sandwichscalesstringistringmagicstringrtibbletidyrtidyselecttrustutf8uuidvctrsviridisLitewithrzoo
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 |
| Dispatch Simulations | 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 |
| Bias of point estimates | sim_bias |
| Correct rejection rate | sim_correct_rejection_rate |
| Empirical correction factor | sim_correction_factor |
| Coverage of confidence intervals | sim_coverage |
| Mean squared error | sim_mse |
| Rejection rate (Type I error under the null) | sim_rejection_rate |
| Type S (sign) error rate | sim_type_s_error |
| Summarize simulation results | summarize_simulation |
