[R] Caleberating weights

Zahoor Z.Ahmad at soton.ac.uk
Fri Feb 13 19:46:07 CET 2015


Hi,

Suppose I have weights di, I want to calibrate thesis weights

I used the objective function

Obj = Sum( wi/di-1)^2/2   ; where will be the resulting calibrated weights

My calibration constraint is

Sum(wizi) = Z      , Z is pop total    (1)

I need r-code to minimize 'Obj' subject to the constraint (1) to obtain calibrated weights wi

Thanks




--
View this message in context: http://r.789695.n4.nabble.com/Caleberating-weights-tp4703226.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]



More information about the R-help mailing list