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
Presence of Heteroskedasticity, Autocorrelation and Cross-sectional Dependence/Contemporaneous Correlation - Panel DataI have a quarterly balanced panel data with 8 independent variables from 2000q1:2012:q2 (n=20 and T=…
Robust standard errors with alternative applicationDear all, I wonder if anyone knows about an application or user written program that can be used to …
twoway functionHi All Please I have heard of twoway function and I want to apply it to my work. I have a non linea…
Compare two coefficients in two different regressionsDear all: I would like to compare the coefficients generated by two different regressions (in two s…
Convert Variable Values to Separate VariableHello, I am part of a research team analyzing survey data regarding attitudes towards a specific he…
Subscribe to:
Post Comments (Atom)
0 Response to Generates averages for partial observations
Post a Comment