From a2fb3ca6078a13a8657ab4465ce80fc3703ee37d Mon Sep 17 00:00:00 2001 From: mwsohn Date: Wed, 13 Apr 2022 00:13:06 -0400 Subject: [PATCH] Update stella_tools.jl --- src/stella_tools.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/stella_tools.jl b/src/stella_tools.jl index fe5dd26..4e5cc74 100644 --- a/src/stella_tools.jl +++ b/src/stella_tools.jl @@ -281,6 +281,10 @@ function eform(glmout::StatsModels.RegressionModel) # standard errors coeftable2.cols[2] = coeftable2.cols[1] .* coeftable2.cols[2] + + # 95% CI + coeftable2.cols[5] = exp.(coeftable2.cols[5]) + coeftable2.cols[6] = exp.(coeftable2.cols[6]) # rename column1 to OR coeftable2.colnms[1] = coeflab(distrib,linkfun) @@ -305,6 +309,10 @@ function eform(glmout::StatsModels.RegressionModel, labels::Label) # standard errors coeftable2.cols[2] = coeftable2.cols[1] .* coeftable2.cols[2] + # 95% CI + coeftable2.cols[5] = exp.(coeftable2.cols[5]) + coeftable2.cols[6] = exp.(coeftable2.cols[6]) + # rename column1 to OR coeftable2.colnms[1] = coeflab(distrib,linkfun)