[R] sum_to_zero_constraints

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Jul 2 13:11:16 CEST 2009



Iason Christodoulou wrote:
> 
> 
> 
> 
> 
> Dear kind R-experts.
> with miximum likelihood method i found the following estimations for my parameters
> 
> vector:
> mu
> H
> A1
> A2
> .
> .
> .
> A10
> D1
> D2
> .
> .
> .
> D10
> 
> but i want to add sum to zero constraints. sum(a1:a10)=0 and sum(d1:d10)=0
> how i will do this?

Don't estimate a10 but rewrite it as a10 = 1 - a1 - a2 - ....

Uwe Ligges



> 
> _________________________________________________________________
> Show them the way! Add maps and directions to your party invites. 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list