Hello,
I want to do a regression with one dependent variable and an independent variable and a few other variables to control for. In addition I want to control for industry- and year-fixed effects. I have a sample consisting of loan pricing data including the borrower company, the lender, the industry in which the firm operates, the year the loan was taken etc. and I want to show which loan characteristics influence the loan spread using an OLS regression. I have multiple firms operating in the same industry. I already grouped the industry by looking at the 2-digit SIC code leaving me with 10 industry dummies. Now I am not sure how to do a regression and controll for industry- and year-fixed effects.
The command -xtset sic_group year- does not work it returns the error "repeated time values within panel", therefore I cannot continue using the command -xtreg, fe-
Thanks!
Related Posts with Inlcude industry- and year-fixed effects in regression
moving average/tsgenHi All, I have a monthly panel data for which I want to get the average of x variable from the last…
Interpreting Probit Model (Missing 1st category coefficient within a categorical variable)Hi I am wondering why my probit model does not provide the coefficient for the first category for my…
Calculations with if statementsHi, If this is my data- day totalpay hours Sunday 500 5 Monday 750 50 Tuesday 325 25 Wed…
How to interpret coefficient of SMB for small and big dependent portfoliosI have six portfolios based on size-bm ratio following FF (1993) methodology these are SL, SN, SH, B…
Identify/test differences across groupsDear Statalist, I have an unbalanced panel with ca. 200 firms, and between 3-8 years of data for ea…
Subscribe to:
Post Comments (Atom)
0 Response to Inlcude industry- and year-fixed effects in regression
Post a Comment