Re: [R] MLE, precision

2004-07-29 Thread boshao zhang
. However, it's best to avoid that ambiguity. I often test at a command prompt variable names I want to use. If the response is object not found, then I feel like I can use it. boshao zhang wrote: Hi, everyone I am trying to estimate 3 parameters for my survival function. It's very

[R] MLE, precision

2004-07-13 Thread boshao zhang
Hi, everyone I am trying to estimate 3 parameters for my survival function. It's very complicated. The negative loglikelihood function is: l- function(m1,m2,b) -sum(d*( log(m1) + log(m2) + log(1- exp(-(b + m2)*t)) ) + (m1/b - d)*log(m2 + b*exp(-(b + m2)*t) ) + m1*t - m1/b*log(b+m2) )