reg_comb: Structure the result of regression

reg_combR Documentation

Structure the result of regression

Description

Structure the result of regression

Usage

reg_comb(
  reg = reg,
  data = data,
  round_p = 4,
  round_ci = 4,
  exp_transfer = FALSE,
  coef = "Estimate",
  p_value = "`Pr(>|z|)`",
  ci_low = "`2.5 %`",
  ci_high = "`97.5 %`",
  comb_ci = "coef(ci_low-ci_high)star, p_value"
)

Arguments

reg

the regression result, like the result of lm or glm

data

provide the data to process, only used when reg is missing

round_p

digital for p value

round_ci

digital for coefficient and ci

exp_transfer

if show the exp form.

coef

column name of coefficient

p_value

column name of p value

ci_low

column name of ci low

ci_high

column name of ci high

comb_ci

form the result to be shown

Author(s)

Shanquan CHEN shanquan0301@gmial.com

Examples

counts <- c(18,17,15,20,10,20,25,13,12)
outcome <- gl(3,1,9)
treatment <- gl(3,3)
glm.D93 <- glm(counts ~ outcome + treatment, family = poisson())
reg_comb(reg = glm.D93, exp_transfer = TRUE)


shanquan0301/DataDescription documentation built on March 13, 2024, 2:49 a.m.