doseSens1.0.0 package

Conduct Sensitivity Analysis with Continuous Exposures and Binary or Continuous Outcomes

apply_permutation_to_matrix

A function that returns a permuted vector according to a matrix and pe...

binary_thresh_attribute

Separable algorithm for threshold attributable effect in a sensitivity...

change_Delta

A helper that takes a gurobi model object outputted from dose_attribut...

constant_effects_test

Asymptotic sensitivity analysis for weak nulls with continuous exposur...

dev_TV

Computes deviation from uniform distribution in total variation distan...

dose_attributable_general

Inference for general attributable effects in sensitivity analysis wit...

dose_sensitivity_mc_gen

Sharp null monte-carlo sensitivity analysis for continuous exposures a...

dose_thresh_attributable_one_sided

Inference for threshold attributable effects in sensitivity analysis w...

extract_above_threshold_vs_baseline

Compute average of outcomes above dose threshold minus average of outc...

extract_below_threshold_vs_baseline

Compute average of outcomes below dose threshold minus average of outc...

extract_max_vs_baseline

Compute largest dose outcome minus average of other outcomes.

extract_min_vs_baseline

Compute smallest dose outcome minus average of other outcomes.

extract_OLS

A function that returns the coefficient from regressing an outcome vec...

extract_stochastic_intervention

Compute weighted sum of outcomes.

extract_threshold_effect_function

Function factory for extract_threshold_effect.

extract_threshold_effect

Compute difference in average outcomes above and below a dose threshol...

max_expectation

A function to compute a conservative upper bound on the worst-case exp...

max_ratio_new

Find the max ratio of probabilities between two permutations.

max_ratio

Find the max ratio of probabilities between two permutations.

max_ratios_summary

Find the max ratio of probabilities between two permutations for each ...

normal_test_gen

Sharp null sensitivity analysis for continuous exposures and binary ou...

prob_bounds

A function to find the maximum and minimum probability of a permutatio...

sharp_double_statistic

Statistic based on inner product between transformations of dose and o...

sharp_null_double_test

Asymptotic sharp null sensitivity analysis for a class of test statist...

var_est

A function for variance estimation

weak_null_test

Asymptotic sensitivity analysis for weak nulls with continuous exposur...

Performs sensitivity analysis for the sharp null, attributable effects, and weak nulls in matched studies with continuous exposures and binary or continuous outcomes as described in Zhang, Small, Heng (2024) <doi:10.48550/arXiv.2401.06909> and Zhang, Heng (2024) <doi:10.48550/arXiv.2409.12848>. Two of the functions require installation of the 'Gurobi' optimizer. Please see <https://docs.gurobi.com/current/#refman/ins_the_r_package.html> for guidance.

  • Maintainer: Jeffrey Zhang
  • License: MIT + file LICENSE
  • Last published: 2025-10-10