stratified_risk: Stratified risk

View source: R/stratified_risk.R

stratified_riskR Documentation

Stratified risk

Description

Calculate stratified risk estimates as per Chapter 15,

Usage

stratified_risk(data, exposure, outcome, stratifier, ci_level = 95)

Arguments

data

A dataframe providing the exposure, outcome and stratifying variable

exposure

binary variable giving the exposure status

outcome

binary variable giving the outcome status

stratifier

stratifying variable

ci_level

variable giving the limits for the confidence interval

Value

A dataframe giving an MH-adjusted risk ratio

Examples

data(tolbutamide)
stratified_risk(tolbutamide, exposure = tolbutamide, outcome = dead,
    stratifier = age)

epijim/episheet documentation built on Jan. 5, 2024, 12:22 a.m.