I can't seem to suppress the warning Maximizing -- use negfn and neggr
produced by this function:
results_sigma <- optimx(par=sigma_guess, fn=myloglikelihood, lower=0,
control=list(dowarn=FALSE,maximize=T),method="L-BFGS-B")
I tried both suppressWarnings()
and suppressMessages()
but to no avail.
even after setting the logical control dowarn=FALSE.