Hi,
I'm running a series of regressions. The basic version is it the form of:
xi: regress y x1 x2 ... x30 i.year i.industry, cluster(ticker)
where ticker is a company's stock ticker (the data has measurements from multiple firms across time).
Now, I also wanted to do a random-effects and fixed-effects version and, based on the help function, I tried the following:
xi: xtreg y x1 x2 ... x30 i.year i.industry, re cluster(ticker)
However, I get the following error:
"i() required" (same error for the fe version)
What am I missing?
I'm running a series of regressions. The basic version is it the form of:
xi: regress y x1 x2 ... x30 i.year i.industry, cluster(ticker)
where ticker is a company's stock ticker (the data has measurements from multiple firms across time).
Now, I also wanted to do a random-effects and fixed-effects version and, based on the help function, I tried the following:
xi: xtreg y x1 x2 ... x30 i.year i.industry, re cluster(ticker)
However, I get the following error:
"i() required" (same error for the fe version)
What am I missing?
Comment