Learn R Programming

doseSens (version 1.0.0)

max_ratio: Find the max ratio of probabilities between two permutations.

Description

Find the max ratio of probabilities between two permutations.

Usage

max_ratio(z, gamma)

Value

the maximum ratio between the probability of two different permutations under the Rosenbaum model with doses z and unmeasured confounding level gamma.

Arguments

z

vector of doses

gamma

level of unmeasured confounding

Examples

Run this code
# A vector of observed doses
doses <- c(0, 0.1, 0.4, 0.8)
ratio <- max_ratio(z = doses, gamma = 1)

Run the code above in your browser using DataLab