Learn R Programming

episheet (version 0.4.0)

stratified_risk: 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

Run this code
# NOT RUN {
data(tolbutamide)
stratified_risk(tolbutamide, exposure = tolbutamide, outcome = dead,
    stratifier = age)
# }

Run the code above in your browser using DataLab