Re: [R] Weighted Optimization

2011-01-13 Thread Jan van der Laan
You will have to modify your likelihood in such a way that it also includes the weights. If your likelihood has the following form: l = sum(log p_i) you could for example add the weights to the likelihood: lw = sum(w_i * log p_i) (although I am not sure that this is the correct way to add

[R] Weighted Optimization

2011-01-12 Thread JASON SCALLY
Hi All, I am trying to code an R script which gives me the time varying parameters of the NIG and GH distributions. Further, becasue I think these these time varying parameters should be more responsive to more recent observations, I would like to include a weighted likelihood estimation procee