Re: [R] Maximum Likelihood using optim()

2011-09-02 Thread Sam Stewart
I think the following pdf will explain the details of how to use the optim function. http://www.unc.edu/~monogan/computing/r/MLE_in_R.pdf Hope that helps, Sam On Fri, Sep 2, 2011 at 7:06 AM, Thiem Alrik wrote: > Dear mailing list, > > I would like to use the optim() command in order to maximiz

[R] Maximum Likelihood using optim()

2011-09-02 Thread Thiem Alrik
Dear mailing list, I would like to use the optim() command in order to maximize the logged likelihood of the following function, where p is the parameter of interest and should be constrained between 0 and positive infinity. y = 1/2 * ((te - x)/(te - tc))^p x and y are given by x <- c(5.18,