Hi Everyone,
I am running a panel regression. My panel variable is fund-month. i.e. I have monthly returns for each fund.
I want to run a panel regression of fund returns on 4 factors and use the following code:
xtset fundno month
xtreg fund_return mktret smb hml mom, vce(cluster month)
I want to cluster my errors at each month because I suspect that errors are correlated at each time t across funds. However, I am getting following error:
panels are not nested within clusters
r(498);
I checked previous relevant discussions but could not find a similar problem. I only have one observation per fund and month. Can anyone explain me my mistake here? I appreciate your helps in advance.
Best,
Ulas
Related Posts with panels are not nested within clusters
Funnel plots for one arm proportion meta analysisHi, I am performing an one-arm proportion metanalysis of incidence studies. Using this command "me…
Non-negative continuous right-skewed (zero-inflated) panel data analysisCurrently I am using Code: xtreg, fe vce(cluster ID) in Stata/MP 14.2 with panel data with 42 entit…
Generating new variable - Qualtrics exportI am generating a new variable based on existing variables in my dataset which were exported from Qu…
Checking for Assumptions before running a fe panel data model (Data Diagnostics)Hi, I am using panel data with 820 companies across 19 years (i.e. 15580 observations) and each obs…
How do you change frequency of dataThe data is currently monthly data. I would like to find the average of the 12 months into a yearly …
Subscribe to:
Post Comments (Atom)
0 Response to panels are not nested within clusters
Post a Comment