Re: [R] maximum likelihood problem

2010-10-02 Thread Prof. John C Nash
optimize. John Nash Message: 81 Date: Fri, 1 Oct 2010 16:39:58 -0400 (EDT) From: mlar...@rsmas.miami.edu To: r-help@r-project.org Subject: [R] maximum likelihood problem Message-ID: <3675.129.171.104.122.1285965598.squir...@webmail.rsmas.miami.edu> Content-Type: text/plain;cha

Re: [R] maximum likelihood problem

2010-10-02 Thread Dennis Murphy
Hi: Is equation written as a function? As in, say, eq <- function(k) 1/LR - (exp(-k * T) * LM) * (1 - exp(-k)) I believe the log of the likelihood would be a simpler expression to maximize... On Fri, Oct 1, 2010 at 1:39 PM, wrote: > I am trying to figure out how to run maximum likelihood in

Re: [R] maximum likelihood problem

2010-10-01 Thread Ravi Varadhan
(minimize) that function. Ravi. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of mlar...@rsmas.miami.edu Sent: Friday, October 01, 2010 4:40 PM To: r-help@r-project.org Subject: [R] maximum likelihood problem I am trying to figure out how

[R] maximum likelihood problem

2010-10-01 Thread mlarkin
I am trying to figure out how to run maximum likelihood in R. Here is my situation: I have the following equation: equation<-(1/LR-(exp(-k*T)*LM)*(1-exp(-k))) LR, T, and LM are vectors of data. I want to R to change the value of k to maximize the value of equation. My attempts at optim and opt