ortable {clintools} | R Documentation |
Logistic regression table with Odds ratio (ortable)
Description
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.
Usage
ortable(x, d, d_p, intercept, simple)
Arguments
x |
Utilises the output from a glm-function. ( |
d |
Refers to the number of digits for odds ratio and confidence intervals. Default is |
d_p |
Refers to the number of digits for odds ratio and confidence intervals. Default is |
intercept |
The intercept is presented in the table if |
simple |
Odds ratio and confidence intervals are merged into one column if |
Value
Returns a dataframe with with odds ratio, confidence limits, and p-values.
Examples
df <- data.frame(outcome=sample(0:1, 100,replace=TRUE),
var=sample(0:100,100,replace=TRUE))
ortable(glm(outcome ~ ., data=df))
[Package clintools version 0.9.10.1 Index]