Skip to content
Prev 132529 / 398506 Next

Computing normal conf.intervals

Jonas Malmros wrote:
First, be more clear about what the intention is. Prediction intervals,
or confidence intervals for the mean? If the former, do you want the
crude version (plus/minus 1.96s) or the version that takes the
estimation variance into account
[1] -1.763791  1.465144
fit       lwr      upr
[1,] -0.1493235 -2.103664 1.805017
2.5 %    97.5 %
(Intercept) -0.7385793 0.4399324
M[nrow(M):1,]

or (safer if nrow==0)

M[rev(seq_len(nrow(M))),]