Hello,
I am trying to find a STATA egen or other command that mimics the function of Excel "line estimate" or LINEST function.
This would provide the slope of the linear regression equation for data in the row. In the example below, slope 5.9 is
the result of the Excel command =LINEST(B2:F2). Is there a STATA egen command to generate the slope of a row of data?
Thank you for your help!

I am trying to find a STATA egen or other command that mimics the function of Excel "line estimate" or LINEST function.
This would provide the slope of the linear regression equation for data in the row. In the example below, slope 5.9 is
the result of the Excel command =LINEST(B2:F2). Is there a STATA egen command to generate the slope of a row of data?
Thank you for your help!
Comment