This is my first post on here, my apologies for any errors.
My data is organized by State and Year. There are hundreds of observations per State-Year that have been used to calculate a new variable x that is the same value for every observation within the state-year group. I just want a simple table that lists the first observation of X in each state-year group (or just the value of X for each state year group). The final table might look something like:
State Year X
AL 1980 ##
AL 1982 ##
.
.
WY 1980 ##
WY 1982 ##
I know this should be an easy fix, but I haven't been able to figure it out. The closest I can get gives me error messages about mixing 'by' and 'in' commands.
Using:
by State Year: list X
Gives me every the value of X for observation with the state-year...and all the values of X are the same within that state-year group.
-Will
Related Posts with Time Series Panel Data
GMM with Unit root dataHello, I have a question about the way I should treat unit root in unbalanced panel data analysis an…
Negative R squared in IV regressionGood afternoon everyone, I am running an instrumental variable regression for panel data with the c…
Generating an ID based on multiple variablesHello Statalisters! I am working with the Birth Recode survey of the Demographic and health surveys…
Value weighted returnsDear all, I am analysing stock returns for approximately 700 companies in Japan. My data is ordered…
Create a subsample - Conditional, weighted random draw of observations, with repalcementDear Statalisters I want to create a random subsample of my original sample; I am basically drawing…
Subscribe to:
Post Comments (Atom)
0 Response to Time Series Panel Data
Post a Comment