Hey,
I have the following panel dataset;
monthly "total_income" dat of "hh_id" (households) from jan 2018 to dec 2020 ("mdate" as time variable) and I have problems calculating averages.
Btw, not all households are observed during the whole time period, like some are observed from feb 2019 to dec 2020.
They are also divided in 5 occupation classes "occupation_class" (categorical).
I want to have the following;
1.the monthly "total_income" average of all households, so what all the households earn on average during each month.
2. The same as above but separate for each "occupation_class".
I want to show these averages in tables but whatever I try I don't get good results.
I hope someone can help me
Related Posts with monthly panel data; id average income, monthly average
Survival analysis using flexible parametric models to account for time-varying hazards (stpm2)Dear Statalisters, My question relates to survival analysis in the presence of time-varying hazards…
How to Set Quarterly DataI am trying to do some VAR analysis, but I can't get the tsset correct, because of how the data in t…
One sample test of proportionsDear Stata users, I have a question regarding comparing 3 or more percentages within the same popul…
The best model for a multilevel dataset with a small number of clustersDear all, I have a three-level cross-country survey data that is not panel. The levels are country…
Running Hausman-Taylor estimator after multiple imputationHi Statalist This is a question about implementing the Hausman-Taylor estimator -xthtaylor- within …
Subscribe to:
Post Comments (Atom)
0 Response to monthly panel data; id average income, monthly average
Post a Comment