Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding additional objective function to OLS and LASSO minimisation problems

    Hi all,

    Could you please recommend efficient ways of adding additional objective functions to OLS - or even better, LASSO - Stata programs?

    Specifically, I have the firm-level regression:
    Click image for larger version

Name:	Screenshot 2023-04-11 at 08.23.34.png
Views:	1
Size:	16.3 KB
ID:	1709319

    where D is an indicator variable and X is a set of regressors. And instead of minimising the RSS, I would like to minimise:
    Click image for larger version

Name:	Screenshot 2023-04-11 at 08.23.44.png
Views:	1
Size:	42.9 KB
ID:	1709320

    where omega is a weight and the second term is the difference between actual and predicted country-level averages of the D indicator.
    Thank you!
Working...
X