niceglmer: Lisa's GLMER Regression Table Function

Description Usage Arguments

View source: R/niceglmer.R

Description

This function creates a nice looking regression table from a lmer/glmer object

Usage

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

Arguments

df

Dataframe.

fit

GLMER binomial model object.

covs

Vector of covariate names in model.

family

Model family in quotes ("guassian", "binomial", "poisson").

exp

Option to exponentiate coefficients and CI's. Default is NA (exp for logistic and poisson families only).

estname

Option to override estimate column name. Default is NA.

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).


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