R/q.mle.norm.estimate.R

Defines functions q.mle.norm.estimate

Documented in q.mle.norm.estimate

q.mle.norm.estimate <- function(complete.lifespans, censored.lifespans)
{
    mle(function(mean, sd, Q)
        {
            qsurvival.nllik("norm", complete.lifespans, censored.lifespans, Q, mean, sd)
        },
        method='L-BFGS-B',
        lower=list(mean=min(complete.lifespans),  sd=0.01, Q=0.000001),
        upper=list(mean=max(complete.lifespans),  
                   sd=(max(complete.lifespans) - min(complete.lifespans)),
                   Q=0.999999),
        start=list(mean=mean(complete.lifespans), 
                   sd=sd(complete.lifespans),
                   Q = 0.5))
}

Try the fracprolif package in your browser

Any scripts or data that you put into this service are public.

fracprolif documentation built on May 2, 2019, 7:59 a.m.