Description Usage Arguments Value Examples
Function to compile OR-table based on GLMER with provided IDs for grouping.
1 2 3 4 | ORtableGLMER(data, this.outcome, this.ID, info, sign.digits = 2,
sign.digits.OR = 3, pvalue.digits = 3, pvalue.cutoff = 0.001,
test.input = FALSE, factor.level.bullet = "- ",
less.than.character = "< ", linebreak.tag = "")
|
data |
A data frame that contains the data (one row per participant). |
this.outcome |
The name of the variable (column) in |
this.ID |
The name of the variable (column) in |
info |
A data frame with specifications for the OR-table. (See Examples below.) |
sign.digits |
Digits used for parameter estimate |
sign.digits.OR |
Digits used for odds ratio with conf.intervals |
pvalue.digits |
Digits used for p-values. |
pvalue.cutoff |
Cutoff for changing p-values to simply 'smaller than', e.g., p < 0.001. |
test.input |
Whether the input is tested for logical consistency. Warning: testing is not
comprehensive. Setting |
factor.level.bullet |
The character to be prepended to factor levels (listing). The default
is |
less.than.character |
The character to be prepended to the cutoff-value for the p-values (e.g., '< 0.001'). The default
is |
linebreak.tag |
Can be used to insert a linebreak-command in the table headers to bring the counts to a new line.
The default is |
An R character-matrix containing the compiled table information.
1 2 3 4 5 | ORtableGLMER(data=example_data2, this.outcome="outc", this.ID="ID",
info=example_variables2,
sign.digits=2, sign.digits.OR=3, pvalue.digits=3, pvalue.cutoff=0.001,
test.input = FALSE, factor.level.bullet = "- ",
less.than.character = "< ", linebreak.tag = "")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.