Learn R Programming

nlrr (version 0.1)

nlor: Odds ratio plot for dose - response non-linear continuous exposure.

Description

Calculates non-linear odds ratio and plot OR vs. a continuous variable.

Usage

nlor(outcome, exposure, covar = NULL, ref = NULL, knum = 4, data)

Arguments

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

Examples

Run this code
sum1 <- nlor('dm', 'lipid', covar = c('age', 'gender'), 0.6, data = Lipid)
head(sum1)

Run the code above in your browser using DataLab