Hi,
I am newbee at stata. I have a panel data for different states and years (from 1970 to 2003). I need to calculate an average percentage change of cigarettes consumption. The data looks like:
year state cigarettes population
1970 A 100 10
1970 B 90 8
1980 A 110 11
1980 B 95 9
1990 A 105 12
1990 B 90 10
2000 A 115 13
2000 B 100 11
First, I need to summarize per capita consumption of cigarettes in every year, also sum of consumption in all states divided by their sum of populations, then storage the results (also save mean for every year), and then calculate the average percentage change.
Best regards,
K.
I am newbee at stata. I have a panel data for different states and years (from 1970 to 2003). I need to calculate an average percentage change of cigarettes consumption. The data looks like:
year state cigarettes population
1970 A 100 10
1970 B 90 8
1980 A 110 11
1980 B 95 9
1990 A 105 12
1990 B 90 10
2000 A 115 13
2000 B 100 11
First, I need to summarize per capita consumption of cigarettes in every year, also sum of consumption in all states divided by their sum of populations, then storage the results (also save mean for every year), and then calculate the average percentage change.
Best regards,
K.
Comment