Code to replicate:
Code:
clear all webuse nlswork mean union, over(year) ci means union if year == 70 mean union if year == 70 *Using the number of observations in year == 1970, same as ci means or mean if di .2230576 + invt(798, (1.95/2)) * .014746 *Using the total number of observations in all dataset, same as mean, over(year) di .2230576 + invt(19238, (1.95/2)) * .014746
0 Response to Bug in confidence interval calculation
Post a Comment