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
occures error 111 during decomp for heckman reg.Hi All, Kindly help me to solve this problem. I am trying to run decomposition using decomp for the…
serial autocorrelation in panel dataHi STATA community I have a panel data for period 2012-2020, with #obs 1988 and #groups 223, I run …
Instrument for Industry Concentration that is uncorrelated with priceI have been trying to identify a good instrument for industry concentration that is uncorrelated wit…
generate event timeDear All, Suppose that I have daily trading data for many years. (A sample of two-year data is "here…
Stata for LinuxHi all Is the Stata software available for Linux supercomputers or not? if yes how much faster and …
Subscribe to:
Post Comments (Atom)
0 Response to panels are not nested within clusters
Post a Comment