hello everyone
for a school assignment I need to perform a linear regression with some constraints
- the sum of the coefficients must be 1
- the coefficients must be greater than or equal to 0
- there should not be a constant term.
the first constraint succeeds and also the constant term is omitted but the constraint where the coefficients are greater than or equal to 0 fails.
Array
Does anyone have an idea how I can solve this?
many thanks in advance
Related Posts with constrained linear regression
finding keywords in string variablesDear Statalister I'm working on a dataset and I need to create a dummy variable equals 1 if the str…
Bootstrapped CI for effect size for one sample t-testHello, I need to test if across a series of studies, the mean response is significantly different f…
Using svy command with graph commandDear all, I am trying to use graph in Stata 16 to plot bars of the means of categorical variables (…
Using svy with graphDear all, I am trying to use graph in Stata 16 to plot bars of the means of categorical variables (…
recovering the estimate of an interaction term using margins when the base level of all zeros is not includedHi Fellow Statalisters, In a recent posting (https://www.statalist.org/forums/forum/general-stata-d…
Subscribe to:
Post Comments (Atom)
0 Response to constrained linear regression
Post a Comment