Hello,
I am looking for a function to calculate the average unemployment rate (mean) over two sets of years (2007-2011) and (2012-2020) for various regions defined by the variable 'regionid'. For the years I have produced a dummy variable 'post' where post=0 if year <= 2011 and post=1 if year > 2011.
I have tried the following functions but I am having difficulty in combining them into one function which incorporates both post and regionid.
tabstat ur, stat(mean) by(regionid)
tabstat ur, stat(mean) by(post)
I am looking to create a table like this using STATA.
Could someone please guide me in finding the right command.
Array
Thank you.
Related Posts with Calculating averages over a time-series
Percentiles and data trimmingGood morning I tried to find an answer to my (apparently) easy question on the forum, but probably i…
Gini index interpretation - time use dataHi everyone, I am using Italian Time Use surveys to analyze parental time investments. I used ineqde…
Scalars and results r(something), and using such in expressions, and properly dereferencing such scalars and resultsI just realised that I have no idea what is the logic behind how scalars and results such as r(somet…
Ordinal variables in Latent profile analysisDear Stata users, I have again a doubt on the latent profile analysis in Stata (gsem command). Amon…
How to interpret regression results if dependent variable is logged and independent variables are standardized?Array In my fixed effects panel regression analysis the DV (Triadic Patent Families) enters in logar…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating averages over a time-series
Post a Comment