Package: doseSens 0.1.0

doseSens: Conduct Sensitivity Analysis with Continuous Exposures and Binary Outcomes

Performs sensitivity analysis for the sharp null and attributable effects in matched studies with continuous exposures and binary outcomes as described in Zhang, Small, Heng (2024) <arxiv:2401.06909>. Two of the functions require installation of the 'Gurobi' optimizer. Please see <https://www.gurobi.com/documentation/9.0/refman/ins_the_r_package.html> for guidance.

Authors:Jeffrey Zhang [aut, cre]

doseSens_0.1.0.tar.gz
doseSens_0.1.0.zip(r-4.5)doseSens_0.1.0.zip(r-4.4)doseSens_0.1.0.zip(r-4.3)
doseSens_0.1.0.tgz(r-4.4-any)doseSens_0.1.0.tgz(r-4.3-any)
doseSens_0.1.0.tar.gz(r-4.5-noble)doseSens_0.1.0.tar.gz(r-4.4-noble)
doseSens_0.1.0.tgz(r-4.4-emscripten)doseSens_0.1.0.tgz(r-4.3-emscripten)
doseSens.pdf |doseSens.html
doseSens/json (API)

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

Peer review:

Bug tracker:https://github.com/jzhang1937/dosesens/issues

Datasets:

On CRAN:

2.30 score 137 downloads 25 exports 19 dependencies

Last updated 2 months agofrom:b1d101ac9f. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-winOKNov 01 2024
R-4.5-linuxOKNov 01 2024
R-4.4-winNOTENov 01 2024
R-4.4-macNOTENov 01 2024
R-4.3-winNOTENov 01 2024
R-4.3-macNOTENov 01 2024

Exports:apply_permutation_to_matrixbinary_thresh_attributeconstant_effects_testdev_TVdose_attributable_generaldose_sensitivity_mc_gendose_thresh_attributable_one_sidedextract_above_threshold_vs_baselineextract_below_threshold_vs_baselineextract_max_vs_baselineextract_min_vs_baselineextract_OLSextract_stochastic_interventionextract_threshold_effectextract_threshold_effect_functionmax_expectationmax_ratiomax_ratio_newmax_ratios_summarynormal_test_genprob_boundssharp_double_statisticsharp_null_double_testvar_estweak_null_test

Dependencies:clidplyrfansigenericsgluegtoolslifecyclelpSolvemagrittrnloptrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Titleapply_permutation_to_matrix
Separable algorithm for threshold attributable effect in a sensitivity analysis with at most one over-exposed unit in each matched set. For a greater than alternative, finds the 'a' matched sets that most decrease the mean and/or variance.binary_thresh_attribute
A helper that takes a gurobi model object outputted from dose_attributable_general or dose_thresh_attributable_one_sided and changes the Delta parameter. Saves computation time by directly editing the constraint involving Delta without having to reinitialize the other constraints that are kept the same. Outputs a list analogous to output from dose_attributable_general or dose_thresh_attributable_one_sided.change_Delta
Titleconstant_effects_test
Computes deviation from uniform distribution in total variation distance for a given amount of unmeasured confounding and a greater than alternative with a binary outcome.dev_TV
Inference for general attributable effects in sensitivity analysis with continuous exposures and binary outcomes. Gurobi must be installed to use this function.dose_attributable_general
Sharp null monte-carlo sensitivity analysis for continuous exposures and binary outcomes.dose_sensitivity_mc_gen
Inference for threshold attributable effects in sensitivity analysis with continuous exposures and binary outcomes. Gurobi must be installed to use this function.dose_thresh_attributable_one_sided
Titleextract_above_threshold_vs_baseline
Titleextract_below_threshold_vs_baseline
Titleextract_max_vs_baseline
Titleextract_min_vs_baseline
Titleextract_OLS
Titleextract_stochastic_intervention
Titleextract_threshold_effect
Titleextract_threshold_effect_function
Titlemax_expectation
Titlemax_ratio
Titlemax_ratio_new
Titlemax_ratios_summary
Sharp null sensitivity analysis for continuous exposures and binary outcomes using normal approximation.normal_test_gen
Titleprob_bounds
Titlesharp_double_statistic
Titlesharp_null_double_test
Matched lead datasettreat_out_match
Titlevar_est
Titleweak_null_test