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
Latent Class Model on a Mixture-Amount Discrete Choice ExperimentHello I performed a discrete choice experiment which included 8 mixtures terms (the proportions of …
Program for cross validation for regression discontinuity in time not runningDear All, To estimate a regression discontinuity in time model I want to use cross validation to de…
Determining lag length in a panel dataset.Hi all, I'm using -xtscc- command to estimate a macroeconomic mode. This dataset set has 133 countr…
Winsorization of VariableDear All I want to ask a doubt which may sound very trivial, but I am unable to take a call. Suppose…
How to set up and run stcox stratified survival analyses on a limited time of the entire followup.Hi, I would like to study the effect of a heritable exposure (gene mutation) on two outcomes (a and…
Subscribe to:
Post Comments (Atom)
0 Response to constrained linear regression
Post a Comment