nlorplot {nlrr} | R Documentation |
Odds ratio plot for dose - response non-linear continuous exposure.
Description
Calculates non-linear odds ratio and plot OR vs. a continuous variable.
Usage
nlorplot(exposure, or, data, xlab = NULL)
Arguments
exposure |
the exposure variable |
or |
odds ratio |
data |
name of a dataset |
xlab |
x-axis |
Examples
sum1 <- nlor('dm', 'lipid', covar = c('age', 'gender'), 0.6, data = Lipid)
head(sum1)
nlorplot('lipid', 'or', data = sum1, xlab = 'Lipid')
[Package nlrr version 0.1 Index]