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
Why do results of teffects versus psmatch2 differ so much?I use teffects and psmatch2 to check if they produce same results. They do not. Below is the code. W…
table that shows average number of appliances owned by household typeDear all, I am stuck with the following challenge: I have household data with the information: hous…
Delete non-matching portions of string variableHi. I have a local (defined below). I also have a string variable Event. I want to only retain words…
Generating values of a variable based on the values of other variables.Hi, In my data, I have portfolio id, port_ret, first, date, count, have, and want. Id is simply th…
Panel data xtreg i.years - multiple years omittedHello, I am doing a research about the effect of gender diversity on firm performance with panel da…
Subscribe to:
Post Comments (Atom)
0 Response to Time Series Panel Data
Post a Comment