Forcing a multiple regression model’s coefficient to be positive
I was wondering if there a way to force a multiple regression model’s coefficient, obtained with the caret package, to be positive (x2>=0). For example, I would like to force x2 in the code below to be a positive number. Thank you!