Hi there,
I'm currently working on some regressions at STATA. For a range of companies I have both sales and cost values for several years. I Need to regress sales (as independant variable) on costs (dependant variable) for each company separately and save the regression coefficients for each company's regression.
I'm quite new to STATA and am a liztle bit lost with how to start. How can I tell STATA to do the regression for each company separately? And as a next step, how can I save the coefficients I get from each regression as a new variable?
Thank you so much in advance for your help!
KR
Sarah
I'm currently working on some regressions at STATA. For a range of companies I have both sales and cost values for several years. I Need to regress sales (as independant variable) on costs (dependant variable) for each company separately and save the regression coefficients for each company's regression.
I'm quite new to STATA and am a liztle bit lost with how to start. How can I tell STATA to do the regression for each company separately? And as a next step, how can I save the coefficients I get from each regression as a new variable?
Thank you so much in advance for your help!
KR
Sarah
Comment