logist_summary: An alternative summary for a logistic model with OR, CI, and...

View source: R/logist_summary.R

logist_summaryR Documentation

An alternative summary for a logistic model with OR, CI, and p-values

Description

a function to create summary table for glm logistic model

Usage

logist_summary(
  fit,
  method = c("lik.ratio", "wald"),
  stat_digits = 2,
  p_digits = 4,
  verbose = FALSE,
  sstable = FALSE,
  flextable = FALSE,
  ...
)

Arguments

fit

a logistic regression model of class "glm"

method

a string whose value is either "lik.ratio" for CI and tests based on likelihood ratio statistics (preferred) or "wald" for CI and tests based on Wald statistics

stat_digits

Number of decimal digits for statistics

p_digits

Number of decimal digits for the p-values

verbose

logical value specifying whether to print out result and notation. Default is FALSE

sstable

logical value specifying whether to return in sstable format. Default is FALSE. Set to TRUE forces verbose to FALSE

flextable

logical value specifying whether to build flextable object. Default it FALSE. Set to TRUE forces sstable to TRUE and verbose to FALSE. Like other sstable objects, you can still create flextable or huxtable afterwards by using ss_flextable or ss_huxtable

...

additional parameters passed to ss_flextable

Value

A data frame of additional class "logist_summary" (if sstable == FALSE), a matrix of class c("summary_tbl", "ss_tbl") otherwise

Author(s)

Marcel Wolbers, Lam Phung Khanh, and Trinh Dong Huu Khanh

See Also

ss_format, ss_huxtable, ss_flextable


oucru-biostats/C306 documentation built on July 16, 2024, 2:33 p.m.