Dear all: I need to find the B vector that minimises the following non-linear function (B-A)*IM*(B-A) such that a linear restriction (also involving the vector B) is fulfilled. It is not necessary to write the restriction in this post. A is the vector of coefficients from my non-restricted model and IM is the inverse of the var/cov matrix from my non-restricted model.
Is it possible to do this in Mata? I use Stata 15. I haven't found any tutorial nor examples of this. I would appreciate your advice ... Many thanks, Juan
Related Posts with non-linear optimisation with linear restrictions
How to calculate Sigma (standard deviation of weekly stock return)Hello all Statalist members. I would like to calculate SIGMA (denotes standard deviation of weekly s…
entropy balancing commandsDear all, I hope you are well. I am performing entropy balancing method for PSM. I have read the pa…
Ho, ho, ho! Wild bootstrap tests for everyone!I've translated the guts of my boottest program from Mata to Julia, producing the Julia package Wild…
Time fixed effect and State fixed effectDear all, I am pretty much new for STATA. I'm currently working on my master's thesis. I want to inv…
Generate a new variable based on the values of a second variableHi, I'm trying to generate a continuous variable using a comparative dataset where I want the count…
Subscribe to:
Post Comments (Atom)
0 Response to non-linear optimisation with linear restrictions
Post a Comment