nlor {nlrr} | R Documentation |
Calculates non-linear odds ratio and plot OR vs. a continuous variable.
nlor(outcome, exposure, covar = NULL, ref = NULL, knum = 4, data)
outcome |
the outcome variable |
exposure |
the exposure variable |
covar |
a covariats list |
ref |
reference value for the continuous variable |
knum |
number of knots |
data |
name of a dataset |
sum1 <- nlor('dm', 'lipid', covar = c('age', 'gender'), 0.6, data = Lipid)
head(sum1)