nlorplot {nlrr} | R Documentation |
Calculates non-linear odds ratio and plot OR vs. a continuous variable.
nlorplot(exposure, or, data, xlab = NULL)
exposure |
the exposure variable |
or |
odds ratio |
data |
name of a dataset |
xlab |
x-axis |
sum1 <- nlor('dm', 'lipid', covar = c('age', 'gender'), 0.6, data = Lipid)
head(sum1)
nlorplot('lipid', 'or', data = sum1, xlab = 'Lipid')