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
Weighted average means in a rolling fashionHi I am not sure how to calculate weighted average means in a rolling fashion. I can only calculat…
Testing for structural break: Contradicting resultsI am analyzing prices data using ARIMA model. Stata's video clip availabel at https://www.youtube.co…
Help with reshaping dataHi Statalist, I'm having trouble with reshaping my data. The data has a (self-explanatory) variable…
Durbin-Wu-Hausman test for GEEsDear Stata Forum I am running a GEE panel regression. I would like to check for endogeneity using …
Dummy variablesI have to complete an assigment where I have to assign a dummy variable to 7 different classes. Thos…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data - mean/median by specific variable
Post a Comment