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
showing different confidence levels for IRF & positive versus negative shocks (VAR analysis)Hi all I have two basic questions for a VAR analysis: 1- I am estimating a var and plotting the orth…
Aggregating Data under serveral conditionsHej Statalist, I have a problem, as I want to aggregate my panel data under certrain conditions. I …
Data query with odbc: from R to StataHi all! I just got access to a SQL Server, where there is a database storing a number of metrics, t…
Panel graph flightdataI'm using flightdata from origin to destination per year and quarter. I want to make a graph giving …
Creating a dummy variable for each observation separatelyHello, I have a nummeric variable which is represented in % and I need to recode this variable. To …
Subscribe to:
Post Comments (Atom)
0 Response to panels are not nested within clusters
Post a Comment