Re: [R] Error in minimizing an integrand using optim

2011-05-30 Thread William Dunlap
nal Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of ch_dinesh > Sent: Monday, May 30, 2011 10:31 AM > To: r-help@r-project.org > Subject: [R] Error in minimizing an integrand using optim > > Hi, > > Am not sure if my

[R] Error in minimizing an integrand using optim

2011-05-30 Thread ch_dinesh
Hi, Am not sure if my code itself is correct. Here's what am trying to do: Minimize integration of a function of gaussian distributed variable 'x' over the interval qnorm(0.999) to Inf by changing value of parameter 'mu'. mu is the shift in mean of 'x'. Code: # x follows gaussian distribution # f