mle                   package:mle                   R Documentation

_M_a_x_i_m_u_m _l_i_k_e_l_i_h_o_o_d _e_s_t_i_m_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Estimate parameters by the method of maximum likelihood.

_U_s_a_g_e:

     mle(minuslogl, start = formals(minuslogl), method = "BFGS", fixed = list(), ...)

_A_r_g_u_m_e_n_t_s:

minuslogl: Function to calculate negative log-likelihood

   start: Named list. Initial values for optimizer

  method: Optimization method to use. See 'optim'

   fixed: Named list. Parameter values to keep fixed during
          optimization

     ...: Further arguments to pass to 'optim'

_D_e_t_a_i_l_s:

     The 'optim' optimizer is used to find the minimum of the negative
     log-likelihood. An approximate covariance matrix for the
     parameters is obtained by inverting the Hessian matrix at the
     optimum.

_V_a_l_u_e:

     An object of class '"mle"'

_N_o_t_e:

     Be careful to note that the argument is -log L (not -2 log L). It
     is for the user to ensure that the likelihood is correct, and that
     asymptotic likelihood inference is valid.

_S_e_e _A_l_s_o:

     'mle-class'

_E_x_a_m_p_l_e_s:

     x <- 0:10
     y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8)
     ll <- function(ymax=15,xhalf=6)
         -sum(dpois(y,lambda=ymax/(1+x/xhalf),log=TRUE))
     mle(ll)
     mle(ll,fixed=list(xhalf=6))

