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
stata ttest significanceHi everyone, I have the following dataset Code: * Example generated by -dataex-. To install: ssc…
Problem with reaching 1:n ratio with psmatch2 !Hi everyone, I am trying to perform a 1:4 propensity score matching using the command psmatch2. Aft…
Asdoc "conformability error"Dear Statalist, I am getting an error message when running the asdoc command. The first code works …
mixed vs. xtreg, reHere are four ways to estimate the same model (I think): Code: xtreg absent ib(2).classtype ib("k"…
Best command for cross-classified modelsI'd like to fit a model with student and teacher random effects. The ID variables for students and t…
Subscribe to:
Post Comments (Atom)
0 Response to monthly panel data; id average income, monthly average
Post a Comment