Dear all,
I hope my post finds you well
I have a question concerning panel data.
I am currently working on my Master's thesis. I have a panel data with 53 cities in 1 country and 104 weeks (2 years) for every city (5,512 obs) and using STATA 15.1.
I am using a fixed effect model with 53 cities and 104 weeks for every city. I would like to add the provinces of this country and declare my data set with a new panel which is province and same period 104 weeks, 24 months and 2 years. I have 13 provinces with different number of cities in every province. I already added the provinces and the periods (Week,Month,Year) and obviously there are repeated time values within panel every time I try to xtset Province week, month or year.
Is it possible to make stata accepts that the provinces are the big groups and that the repeated time values are for every city but regrouped on province level?
Thank you in advance
Best regards,
Related Posts with groups within groups
non-linear optimisation with linear restrictionsDear all: I need to find the B vector that minimises the following non-linear function (B-A)*IM*(B-A…
help with local macrosDear all, I would like to create several boxplots at once and combine them. i found the code below a…
Data which contain Multiple followups with hours variablesDear Statlist Users, Hope all you experts are doing great.I wanted to understand how to analyze the…
Problem with Reshape on Panel DataHi all, My aim is to make variable id to be unique and I think reshape is the command instead of col…
Number of rows and columns of subplots using xtlineHi, how can I define the number of rows/columns of subplots when using "xtline"? The options "rows(…
Subscribe to:
Post Comments (Atom)
0 Response to groups within groups
Post a Comment