ortable | R Documentation |
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(x, d, d_p, intercept, simple)
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 |
Returns a dataframe with with odds ratio, confidence limits, and p-values.
df <- data.frame(outcome=sample(0:1, 100,replace=TRUE),
var=sample(0:100,100,replace=TRUE))
ortable(glm(outcome ~ ., data=df))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.