Hi,
I have panel data with several stocks and dates. I have variable X which is defined for each date and stock.
I wanted to find the mean and the median of variable X for an "average day" and for an "average stock" in my sample. Using the bysort : egen command yields the same results for both, so I do not know what I am doing wrong. Other posts on this issue did not solve my problem...
Do you have an idea? Thank you very much!
Best regards,
Eva
Related Posts with Panel Data - mean/median by specific variable
Dropping observationsHello Members, I have a dataset that looks like this: Code: clear input float(time v1 v2) 1 500 …
Using NYC shapefiles | Issue with Lat LongHi, I am trying to use NYC census shapefile from here - https://www1.nyc.gov/site/planning/d...-met…
Collapse vs dropI am trying to collapse this data of all treatment lines to include only the first treatments for th…
Aggregated data for box plotHi I am drawing a box plot. However, what I only have would be aggregated data. Mean SD Median Q1 Q3…
Interactions with dummiesDear all, In the following interaction, how can I specify if female==1 (for women)? I want to look …
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data - mean/median by specific variable
Post a Comment