modify_hitman_pvalues: Modify p-values of hitman or lotman

View source: R/modify_hitman_pvalues.R

modify_hitman_pvaluesR Documentation

Modify p-values of hitman or lotman

Description

Modify p-values of hitman or lotman based on sidedness of both tests.

Usage

modify_hitman_pvalues(
  tab,
  overall.sign,
  stat.cols = c("EM.z", "MY.z"),
  p.cols = c("EM.p", "MY.p")
)

Arguments

tab

Numeric matrix. Must have "EM" and "MY" stat and ".p" columns.

overall.sign

Sign of overall effect from exposure to outcome, one of 1 or -1.

stat.cols

Vector of length 2 with column names or indices of signed statistics.

p.cols

Vector of length 2 with column names or indices of p-values.

Value

Matrix with p-value columns modified.


jdreyf/Hitman documentation built on April 12, 2025, 1:35 p.m.