Re: [R] Help with reading code

2008-12-04 Thread Dana77
Thank you, Steven. It helps! Best, Dana Steven McKinney wrote: > > Hi Dana > >> -Original Message- >> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] >> On Behalf Of Dana77 >> Sent: Wednesday, December 03, 2008 3:24 PM >> To: r-he

Re: [R] Help with reading code

2008-12-03 Thread Steven McKinney
Hi Dana > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Dana77 > Sent: Wednesday, December 03, 2008 3:24 PM > To: r-help@r-project.org > Subject: [R] Help with reading code > > > I would like to give out the equation

[R] Help with reading code

2008-12-03 Thread Dana77
I would like to give out the equation for calculating the maximum likelihood. Below is the code, but I still have problems with it. After I read the code, I found there are two cases for "w(weights)". If "w" is not zero, then the equation is given as "val <- 0.5 * (sum(log(w)) - N * (log(2 * pi