reg_comb | R Documentation |
Structure the result of regression
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"
)
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 |
Shanquan CHEN shanquan0301@gmial.com
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.