- tab_double (t, 3, 1, 0, std_err, NULL);
- tab_double (t, 4, 1, 0, 0.0, NULL);
+
+ if (cmd->stats & STATS_CI)
+ {
+ double lower = linreg_intercept (c) - tval * std_err ;
+ double upper = linreg_intercept (c) + tval * std_err ;
+ tab_double (t, 7, heading_rows, 0, lower, NULL, RC_OTHER);
+ tab_double (t, 8, heading_rows, 0, upper, NULL, RC_OTHER);
+
+ tab_joint_text_format (t, 7, 0, 8, 0, TAB_CENTER | TAT_TITLE, _("%g%% Confidence Interval for B"), cmd->ci * 100);
+ tab_hline (t, TAL_1, 7, 8, 1);
+ tab_text (t, 7, 1, TAB_CENTER | TAT_TITLE, _("Lower Bound"));
+ tab_text (t, 8, 1, TAB_CENTER | TAT_TITLE, _("Upper Bound"));
+ }
+ tab_double (t, 3, heading_rows, 0, std_err, NULL, RC_OTHER);
+ tab_double (t, 4, heading_rows, 0, 0.0, NULL, RC_OTHER);