risk_adjust: Make funnel plots

View source: R/risk_adjust.R

risk_adjustR Documentation

Make funnel plots

Description

Create a funnel plot from a dataframe containing at least two columns (i.e numerator and denominator) It is currently working only with binary outcome, continuous outcomes will be supported in future

Usage

risk_adjust(data, site_id, outcome, outcome_type, adj_vars)

Arguments

data

dataframe containing the numertaors and denominators

site_id

string health service (e.g. "site_code")

outcome

string health outcome (e.g. "inpatient mortality")

outcome_type

type of the outcome variables (i.e. "binary" or "continuous")

adj_vars

vector with the adjusting variables (e.g. c("sex", "age"))

Value

the risk adjusted dataset


farhadsalimi/registryr documentation built on June 24, 2022, 12:23 a.m.