This function creates a nice looking regression table from a clogit object. Estimates are presented as OR's (coefficients and CI's are exponentiated).

1 2 3 4 |

`df` |
Dataframe. |

`fit` |
clogit model object. |

`intercept` |
If TRUE the intercept will be included in the table. Default is FALSE. |

`ref` |
If TRUE, the reference category gets its own line (left blank). Default is FALSE. |

`labels` |
Covariate labels - default is NA (variable names are used). |

`blanks` |
If TRUE, blank lines will be inserted separating covariates - default is FALSE. |

`overallp` |
If TRUE, a likelihood ratio test pvalue (using drop1 Chisq tests) will be calculated for each variable. Default is TRUE. |

`est.dec` |
Number of decimal places for estimates - default is 2. |

`ci.dec` |
Number of decimal places for CI - default is 2. |

`pval.dec` |
Number of decimal places for pvalues - default is 3. |

`htmlTable` |
Whether to use htmlTable package to display table (instead of xtable). Default = FALSE. |

`color` |
Hex color to use for htmlTable output. Default = "#EEEEEE" (grey). |

`printRMD` |
Whether to print resulting table to Rmd via xtable. Default = TRUE. |

lisaerein/daphne documentation built on May 21, 2019, 6:42 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.