powered by
ortable() is a small function which utilises the output from the glm-function to print a dataframe with odds ratio, confidence limits, and p-values.
ortable()
ortable(x, d, d_p, intercept, simple)
Returns a dataframe with with odds ratio, confidence limits, and p-values.
Utilises the output from a glm-function. (glm-output)
glm-output
Refers to the number of digits for odds ratio and confidence intervals. Default is 2. (numeric)
2
numeric
Refers to the number of digits for odds ratio and confidence intervals. Default is 3. (numeric)
3
The intercept is presented in the table if TRUE. Default is FALSE. (boolian)
TRUE
FALSE
boolian
Odds ratio and confidence intervals are merged into one column if TRUE. Default is TRUE. (boolian)
df <- data.frame(outcome=sample(0:1, 100,replace=TRUE), var=sample(0:100,100,replace=TRUE)) ortable(glm(outcome ~ ., data=df))
Run the code above in your browser using DataLab