Skip to content

Commit

Permalink
Update stella_tools.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
mwsohn authored Apr 13, 2022
1 parent 2c16a28 commit a2fb3ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/stella_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit a2fb3ca

Please sign in to comment.