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
Missing birth year in one panel observation issueI have an issue in my data set that looks like this: ID Year Birth Year 1 2000 1990 1 2002 This iss…
egen function xtile() not found even with egenmore installedHello everyone, I am not a pro on Stata but need to use it for a research paper in Finance for my d…
post stratification weightsDear all, I am analysing a survey in Stata and would need to get some means and regression coeffici…
How to overcome problems in fuzzy match via matchit and reclink?Hi Statalisters, I try to use fuzzy match commands matchit and reclink to merge two datasets. Here…
connecting several coefficients across sub-graphs - CoefplotHi statalister, I have an issue with connecting coeficients results using coefplot (Stata journal v…
Subscribe to:
Post Comments (Atom)
0 Response to constrained linear regression
Post a Comment