Learn R Programming

obcost (version 0.1.0)

rel_risk_fun: rel_risk_fun function

Description

The "rel_risk_fun" could update the relative risks (or the constants) when crucial data needs updating

Usage

rel_risk_fun(rr)

Value

a list (dataframe) of relative risks

Arguments

rr

the relative risks of diseases -- Cardiovascular disease, diabetes, cancer, Chronic obstructive pulmonary disease or asthma, osteoarthritis, hypertension, kidney diseases, (Gallbladder, Liver, Pancreatic) diseases, and strokes.

Examples

Run this code
key <- rel_risk_fun(rr = c(1,2,3,4,5,6,7,8,1.2))
key$rr

Run the code above in your browser using DataLab