niceclogit: Lisa's Conditional Logistic Regression Table Function

Description Usage Arguments

View source: R/niceclogit.R

Description

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

Usage

1
2
3
4
niceclogit(df, fit, intercept = FALSE, ref = FALSE, labels = NA,
  blanks = FALSE, overallp = TRUE, est.dec = 2, ci.dec = 2,
  pval.dec = 3, htmlTable = FALSE, color = "#EEEEEE",
  printRMD = TRUE)

Arguments

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.