Re: [R] How to write the log function in R

2008-09-02 Thread Ben Bolker
toh yahoo.com> writes: > > > Hi, > > I need help to write the following log-likelihood function in R: > log(L) = sum [(y_k - y_k-1).log(m(t_k) - m(t_k-1)) - (m(t_k) - m(t_k-1)) - > log((y_k -y_k-1)!)] > > I need to write this log-likelihood function in order to find the parameters > by MLE me

[R] How to write the log function in R

2008-09-01 Thread toh
Hi, I need help to write the following log-likelihood function in R: log(L) = sum [(y_k - y_k-1).log(m(t_k) - m(t_k-1)) - (m(t_k) - m(t_k-1)) - log((y_k -y_k-1)!)] I need to write this log-likelihood function in order to find the parameters by MLE method. Appreciate the help. -- View this m