Hi all,
I am an absolute beginner in stata and urgently need your help.
I am doing a regression analysis on a panel dataset containing information on banks' balance sheets and income statements.
I want to regress a few dependent variables (Profits, Size, Collateral) on Leverage and cluster standard errors at bank/firm level. My code:
reg Leverage Profits Size Collateral, vce (cluster Bank_Name)
Further, the regression should account for country & time fixed effects using the -xtreg- command and the fe option. I already created a numerical identifier for country:
egen identifier_country = group(country)
However, if I run xtset identifier_country year I get the following error message: "repeated time values within panel". This is because I the dataset contains information on multiple banks in the same year in the same country and stata sees this as repeated values.
My question: How can I overcome this problem? Any suggestions?
Thank you!
Marius
I am an absolute beginner in stata and urgently need your help.
I am doing a regression analysis on a panel dataset containing information on banks' balance sheets and income statements.
I want to regress a few dependent variables (Profits, Size, Collateral) on Leverage and cluster standard errors at bank/firm level. My code:
reg Leverage Profits Size Collateral, vce (cluster Bank_Name)
Further, the regression should account for country & time fixed effects using the -xtreg- command and the fe option. I already created a numerical identifier for country:
egen identifier_country = group(country)
However, if I run xtset identifier_country year I get the following error message: "repeated time values within panel". This is because I the dataset contains information on multiple banks in the same year in the same country and stata sees this as repeated values.
My question: How can I overcome this problem? Any suggestions?
Thank you!
Marius

Comment