Report significance sideways


In nested regression models, asdocx reports statistics showing statistical significance in the second row, below the regression coefficients. In the recent update (version 2.2.1: June 20, 2022) , I have added the sideways option to report significance statistics (such as t-values, p-values, standard errors) or confidence intervals sideways to the right of the regression coefficients.

In this post, I’ll show several examples using the sideways option. The first example tries to make a table is often required in medical / epidemiological studies.

Report confidence intervals to the right-side


In medical / epidemiological studies, researcher often report odd ratios and confidence intervals in a single row. To make such a table, use the following options of asdocx:

nest : invoke a nested regression table

rep(ci) :  to report confidence

sideways : to report the confidence intervals to the right side of the odd ratios

eform : to report odd rations (exponentiated coefficients)

dec(3) : set three decimal places

tzok: report equal number of decimal points, even if the trailing values are all zeros.

 webuse lbw , clear
 
 asdocx logit low age lwt i.race smoke ptl ht ui , ///
        nest sideways tzok rep(ci)

 asdocx logit low lwt i.race smoke ptl ht ui , ///
        nest sideways tzok rep(ci)

Table: Regression results
(1) (2)
Variables birthweight<2500g birthweight<2500g
age of mother –0.027 [–0.099, 0.044]
weight at last menstrual period –0.015 [–0.029, –0.002] ** –0.016 [–0.029, –0.002] **
race (Reference: white)
black
1.263 [0.231, 2.294] ** 1.325 [0.302, 2.349] **
other
0.862 [0.001, 1.723] ** 0.898 [0.047, 1.748] **
smoked during pregnancy 0.923 [0.138, 1.709] ** 0.939 [0.157, 1.72] **
premature labor history (count) 0.542 [–0.137, 1.22] 0.503 [–0.166, 1.172]
has history of hypertension 1.833 [0.477, 3.188] *** 1.854 [0.492, 3.216] ***
presence, uterine irritability 0.759 [–0.142, 1.659] * 0.786 [–0.109, 1.680] *
Intercept 0.461 [–1.900, 2.822] –0.09 [–1.956, 1.775]
Observations 189 189
Pseudo R2 0.142 0.139
Notes:Confidence intervals are reported in brackets at 95%. *** p<.01, ** p<.05, * p<.1