Description Usage Arguments Details Value Examples
Create journal style model output table.
1 2 |
model |
Object output from lm, glm or coxph |
data |
A dataframe including the exposure variable. |
esdigits |
Controlling the effect size digits. Default to 2. |
output |
String of path to store the output word file. For example, 'Table2.doc' or 'Table2.rtf' |
pdigits |
Controlling the significant p-value digits. Default to 2. |
eps |
P-value tolerane. Those less than eps are formatted as "< [eps]". Default to 0.001 |
catcol |
A vector of factrozied categorical column names in character. Default to NULL. |
Table2 function
This function helps to create journal style "Table 2" (model output).
Currently the function only supports lm, glm and coxph objects.
The output include effect size (95% CI) along with p-values.
The output will be saved in word file.
If output is not specified, a dataframe will be returned. Otherwise, a rtf file will be saved in the specified path.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.