the equivalent matlab code for areg ,absorb in stata
2 views (last 30 days)
Show older comments
Hi, I am new to Matlab. I want to run a regression for an unbalanced panel data.
In stata the code should be :
areg y a b c c2 b2 b*c if year <=`q', absorb(ind_year)
( c2= c^2, b2 = b^2)
I am wondering whether any equivalent code to run this regression in matlab.
Thank you.
0 Comments
Answers (1)
Image Analyst
on 17 Jun 2019
I don't understand your code at all. If you want to fit a polynomial, use polyfit(). For something more complicated, try fitnlm().
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!