Hi,
I want to input a number of people by age classes, but then my code give me one observation for each age classe. I try with the reg function, who say I have 66 millions of observations, but when after I try "tab AGECL" that say again that I have one observation for each classe group. Do somebody know how can I solve this problem ?
Thanks !
I want to input a number of people by age classes, but then my code give me one observation for each age classe. I try with the reg function, who say I have 66 millions of observations, but when after I try "tab AGECL" that say again that I have one observation for each classe group. Do somebody know how can I solve this problem ?
Thanks !
Code:
clear input byte (AGECL) POPULATION 1 11965004 2 11740895 3 12486039 4 13345975 5 11133961 6 6286470 end label values AGECL AGECL label def AGECL 1 "0-14", modify label def AGECL 2 "15-29", modify label def AGECL 3 "30-44", modify label def AGECL 4 "45-59", modify label def AGECL 5 "60-74", modify label def AGECL 6 "plus de 75", modify label var AGECL "âge en classe" label var POPULATION "Population par groupe d'âge en France" reg AGECL [fweight=POPULATION] Source | SS df MS Number of obs =66958344 -------------+------------------------------ F( 0,66958343) = 0.00 Model | 0 0 . Prob > F = . Residual | 16878110466958343 2.52068819 R-squared = 0.0000 -------------+------------------------------ Adj R-squared = 0.0000 Total | 16878110466958343 2.52068819 Root MSE = 1.5877 ------------------------------------------------------------------------------ AGECL | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 3.280807 .000194 1.7e+04 0.000 3.280427 3.281188 ------------------------------------------------------------------------------ . tab AGECL âge en | classe | Freq. Percent Cum. ------------+----------------------------------- 0-14 | 1 16.67 16.67 15-29 | 1 16.67 33.33 30-44 | 1 16.67 50.00 45-59 | 1 16.67 66.67 60-74 | 1 16.67 83.33 plus de 75 | 1 16.67 100.00 ------------+----------------------------------- Total | 6 100.00
Comment