nlor {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

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

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

[Package nlrr version 0.1 Index]