Skip to contents

Estimate bias due to conditional logistic regression in CXO study

Usage

SCL_bias(data, exposure, event, Id)

Arguments

data

input dataframe

exposure

exposure variable

event

outcome variable

Id

person Id for strata

Value

A list containing:

sclStandard Conditional logistic regression OR
mh_orMantel_Haenszel OR
bias% difference between the CL and MH OR

Examples

data(cases)
SCL_bias(data=cases, exposure=ex, event=Event, Id=Id)
#> $scl
#> [1] 1.450808
#> 
#> $mh_or
#> [1] 1.4
#> 
#> $bias
#> [1] "3.6%"
#>