Skip to content
Prev 12475 / 20628 Next

Confidence interval for sum of coefficients

On 14-09-25 10:17 AM, Doogan, Nathan wrote:
That was exactly what I was going to suggest (but hadn't gotten around
to it).  It's slightly less accurate than parametric bootstrapping or
likelihood profiling (the former is computationally straightforward, the
latter would have to be implemented more or less from scratch), but
should be fine in many cases.

 To be more specific, if you have a linear combination of parameters in
mind (e.g. lincomb <- c(1,1,1) for adding all three parameters), you want

lincomb %*% vcov(fitted_model) %*% lincomb

(R should take care of the transposition where necessary, I think)
to get the variance.

By the way, I don't think it makes any sense at all to add confidence
intervals; as one example, imagine that two quantities have estimated
values of 1 and 2 with confidence intervals {-1,3} and {1,3}; should the
net confidence intervals actually be {0,6} ... ?  Or add many values
with lower bounds at zero -- should the joint lower bound really be
zero?  If you want to add something, add *variances* and convert to std
errors and from there to CIs ...