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
calculating true confidence intervals across binomial distributionsI'm attempting to reproduce in Stata a technique from a statistical coding textbook ("Analysis of Ca…
New Stata module for robust estimation of production functionsA new Stata module for robust estimation of production functions is now available at the SSC archive…
ISOweek from dates in Stata: Code belowThere is no direct command for generating the ISOweek (ISO8601) from a date in Stata. The following …
How to change dot appearance in a marginsplot with recast(dot)?Hello all, Title is self explanatory. I'm presenting margins output in a marginsplot, and I'm choos…
Multi-level multiple imputation in a longitudinal dataset with three levelsI have a longitudinal dataset that is hierarchical in nature with repeated measures of outcomes take…
Subscribe to:
Post Comments (Atom)
0 Response to panels are not nested within clusters
Post a Comment