R/EstStep.R

Defines functions EstStep

Documented in EstStep

EstStep = function()
{
  e$STEP = "EST"
  OFVinit = Obj(rep(0.1, e$nPara))
  StartTime = Sys.time()
  Res = optim(rep(0.1, e$nPara), Obj, method="L-BFGS-B")
  RunTime = difftime(Sys.time(), StartTime)
  e$FinalPara = DECN(Res$par)
  Result = list(OFVinit, RunTime, Res, e$FinalPara)
  names(Result) = list("Initial OFV", "Time", "Optim", "Final Estimates")
  return(Result)
}

Try the nmw package in your browser

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

nmw documentation built on May 31, 2023, 6:24 p.m.