Skip to content

Commit d4cdb92

Browse files
authored
Update test_sensitivity.R
1 parent 1dbaf8b commit d4cdb92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/test_sensitivity.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ test_sensitivity <- function(est_eff,
3232
tails = 2,
3333
index,
3434
nu = 0, # null hypothesis
35-
suppression = 0,
35+
signsuppression = 0,
36+
## signsuprresion means towards the other side of nu
3637
## by default is zero
3738
## alternative is one
3839
eff_thr = NA, # another non-zero and arbitrary threshold in terms of beta
@@ -42,8 +43,8 @@ test_sensitivity <- function(est_eff,
4243

4344
## warning messages for potential confusion
4445

45-
if (suppression == 1) warning("suppression is defined by a threshold of opposite sign of the estimated effect.")
46-
46+
if (signsuppression == 1) warning("signsuppression is defined by a threshold of opposite sign of the estimated effect.")
47+
4748
if (nu != 0) warning("You entered a non-zero null hypothesis about an effect.
4849
ITCV is calculated assuming omitted variable is equally
4950
correlated with predictor of interest and outcome.

0 commit comments

Comments
 (0)