https://github.com/cran/bbmle
Raw File
Tip revision: a30256c01413bbf7af580b5ae24547064a7d055e authored by Ben Bolker on 18 April 2017, 12:04:25 UTC
version 1.0.19
Tip revision: a30256c
profile-methods.Rd
\name{profile-methods}
\docType{methods}
\alias{proffun}
\alias{profile-methods}
\alias{profile,mle2-method}
\alias{profile.mle2}
\title{Likelihood profiles }
\description{
  Compute likelihood profiles for a fitted model
}

\usage{
proffun(fitted, which = 1:p, maxsteps = 100,
                    alpha = 0.01, zmax = sqrt(qchisq(1 - alpha/2, p)),
                    del = zmax/5, trace = FALSE, skiperrs=TRUE,
                    std.err, 
                    tol.newmin = 0.001, debug=FALSE,
                    prof.lower, prof.upper,
                    skip.hessian = TRUE,
                    continuation = c("none","naive","linear"),
                    try_harder=FALSE, \dots)
\S4method{profile}{mle2}(fitted, \dots)
}
\arguments{
  \item{fitted}{A fitted maximum likelihood model of class
\dQuote{mle2}}
  \item{which}{a numeric or character vector describing which parameters
to profile (default is to profile all parameters)}
  \item{maxsteps}{maximum number of steps to take looking for an upper
value of the negative log-likelihood}
  \item{alpha}{maximum (two-sided) likelihood ratio test confidence
    level to find}
  \item{zmax}{maximum value of signed square root of deviance difference
    to find (default value corresponds to a
  2-tailed chi-squared test at level alpha)}
  \item{del}{step size for profiling}
  \item{trace}{(logical) produce tracing output?}
  \item{skiperrs}{(logical) ignore errors produced during profiling?}
  \item{std.err}{Optional numeric vector of standard errors, for cases
    when the Hessian is badly behaved.  Will be replicated if necessary,
    and NA values will be replaced by the corresponding values from
    the fit summary}
  \item{tol.newmin}{tolerance for diagnosing a new minimum below the
    minimum deviance estimated in initial fit is found}
  \item{debug}{(logical) debugging output?}
  \item{prof.lower}{optional vector of lower bounds for profiles}
  \item{prof.upper}{optional vector of upper bounds for profiles}
  \item{continuation}{use continuation method to set starting values?
    \code{"none"} sets starting values to best fit; \code{"naive"}
    sets starting values to those of previous profiling fit;
    \code{"linear"} (not yet implemented) would use linear extrapolation
    from the previous two profiling fits}
  \item{skip.hessian}{skip hessian (defunct?)}
  \item{try_harder}{(logical) ignore \code{NA} and flat spots in the
profile, try to continue anyway?}
  \item{\dots}{additional arguments (not used)}
}
\details{
  \code{proffun} is the guts of the profile method, exposed
  so that other packages can use it directly.
  
  See the vignette (\code{vignette("mle2",package="bbmle")})
  for more technical details of how profiling is done.
 }
 \seealso{\code{\link{profile.mle-class}}}
\keyword{methods}
back to top