[R] How to write the log function in R

toh tohbin at yahoo.com
Tue Sep 2 07:00:14 CEST 2008


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 message in context: http://www.nabble.com/How-to-write-the-log-function-in-R-tp19264137p19264137.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list