[R] mle

dpender d.pender.1 at research.gla.ac.uk
Tue Feb 22 10:46:44 CET 2011


Hi,

I am looking for some help regarding the use of the mle function.

I am trying to get mle for 3 parameters (theta0, theta1 and theta2) that
have been defined in the the log-likelihood equation as theta0=theta[1],
theta1=theta[2] and theta2=theta[3].

My R code for mle is:

mle(Poisson.lik, start=list(theta=c(20,1,1), method="Nelder-Mead",
fixed=list(w=w, t1=t1, t2=t2))

But I keep getting the following error, 

Error in eval(expr, envir, enclos) : argument is missing, with no default

I am trying to maximise theta starting at (20,1,1) over a fixed range of w,
t1 and t2.

Can anyone shed some light as to what is going on?

Thanks,

Doug
-- 
View this message in context: http://r.789695.n4.nabble.com/mle-tp3318857p3318857.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list