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

Description Usage Arguments Examples

View source: R/nlor.r

Description

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

Usage

1
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

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

Example output

         lipid       or      orse     orup     orlow xref
[1,] 0.2090909 1.465966 0.5967028 4.721147 0.4551979  0.6
[2,] 0.2116402 1.461742 0.5925736 4.669599 0.4575745  0.6
[3,] 0.2335766 1.425894 0.5570434 4.248661 0.4785443  0.6
[4,] 0.2383721 1.418175 0.5492765 4.161820 0.4832548  0.6
[5,] 0.2520325 1.396415 0.5271517 3.924055 0.4969285  0.6
[6,] 0.2654028 1.375441 0.5054975 3.704504 0.5106858  0.6

nlrr documentation built on May 2, 2019, 8:22 a.m.

Related to nlor in nlrr...