Re: [R] Adding weights to optim

2011-09-23 Thread Ahnate Lim
Thanks for your help, what I meant was that each observation x had a corresponding count to them, and I wanted to use these counts as weights in the optim (so that the optim process would give more weight to the measurements that had more counts). I had forgotten if the weights should accounted fo

Re: [R] Adding weights to optim

2011-09-23 Thread Rolf Turner
I'm not at all sure that I understand your question, but since (as far as I am aware) no-one else has answered, I'll give it a go. The puzzle, to me, is what you mean by ``I would like to add weights to optim.'' What do you mean ``add weights''? If you want to minimize a weighted sum of squar