gailSimon: Test for qualitative interaction by Gail and Simon

View source: R/gailSimon.R

gailSimonR Documentation

Test for qualitative interaction by Gail and Simon

Description

This function computes the p-value of the Gail-Simon test for qualitative interaction from effect estimates and the corresponding standard errors in a number of subgroups

Usage

gailSimon(thetahat, se)

Arguments

thetahat

A numeric vector of length > 1. Denotes the effect estimates in the different subgroups.

se

A numeric vector of the same length as thetahat. Contains the standard errors of the corresponding effect estimates in each subgroup.

Value

A named numeric vector of length 2 containing the p-value and the corresponding test statistic of the Gail-Simon test.

Author(s)

Leonhard Held

References

Gail, M., & Simon, R. (1985). Testing for Qualitative Interactions between Treatment Effects and Patient Subsets. Biometrics, 41(2), 361–372. https://doi.org/10.2307/2530862

Examples

rd <- c(0.163, -0.114, -0.047, -0.151)
rd.se <- c(0.0788, 0.0689, 0.0614, 0.0547)
## Gail and Simon test
gailSimon(thetahat = rd, se = rd.se)

felix-hof/biostatUZH documentation built on Sept. 27, 2024, 1:48 p.m.