Could you please explain it to me why the following commands don't have the same results:
Code:
egen A1=rowtotal(B C D E) format A1 %15.0gc gen B1=B +C+ D +E format B1 %15.0gc
A B C D E A1 B1
19357423 13487791 1468631 3562403 174477 18693300 18693302
33187208 29843165 949 3341676 1418 33187206 33187208
41899510 26769131 10932809 4114182 400853 42216972 42216976
19357423 13487791 1468631 3562403 174477 18693300 18693302
33187208 29843165 949 3341676 1418 33187206 33187208
41899510 26769131 10932809 4114182 400853 42216972 42216976
0 Response to egen rowtotal VS. gen
Post a Comment