If you use the mle() function in the `stats4' package, you don't
have to do anything special. For example,
> negloglik <- function(a, b) { a^2 + b^2 }
> mle(negloglik, start = list(a = 2), fixed = list(b = 4))
Call:
mle(minuslogl = negloglik, start = list(a = 2), fixed = list(b = 4))
Coefficients:
Dear all,
I'd like to find a minimum of (-loglik) function which is a function of k parameters.
I'd like to run the minimization algorithm for the different subsets of the parameters
and assign the fixed values to the complementary subset. How should I define my
(-loglik) function such that it c