Hi everyone!
My dataset is composed of 4122 observations: 83 cities and for each observation to 1901 to 1950. I would like to calculate the average mortality of influenza from 1901 to 1917 for each city. And after that, I would like to compute the average mortality of influenza from 1918 to 1920. To finish, I need to subtract these two averages
Thus, I guess that I have to generate the two averages but I don't know how to code to have the averages that I desire
I'm really sorry if my question is a bit easy but I already checked during a few hours for an answer without result
Thanks in advance!
Related Posts with Generates averages for partial observations
Wrong observation number and cluster numberHi, I am currently puzzled by having a different observation and cluster count in the regression mo…
xtreg adjusted for heteroskedasticiy and firm-level clusteringHello, I have unbalanced panel data (74 companies with a total of 800 observations over 18 years). …
Propensity Score Matching Panel DataHello, I am looking to analyse the change (if any) in the political opinion of an individual after t…
I am trying to make something like -levelsof- saving the levels of a variable, but not in a local, rather in a another variable.Good morning, I often use -levelsof- to loop through the levels of an unequally spaced variable. It…
graph editingI created the attached data file from data on the web. I typed:: hbar pctdiff,l(name) using Nick C…
Subscribe to:
Post Comments (Atom)
0 Response to Generates averages for partial observations
Post a Comment