Open dpritchard opened 8 years ago
Currently frair_compare relies on some dodgy logic for applying different options for mle2 for different curves.
frair_compare
if(length(unlist(start))>1){ try_test <- try(bbmle::mle2(minuslogl=fr_nll_difffunc, <SNIP> optimizer='optim', method='Nelder-Mead'), silent=TRUE) } else { try_test <- try(bbmle::mle2(minuslogl=fr_nll_difffunc, <SNIP>, optimizer='optim'), silent=TRUE) }
friar_fitdoesn't rely on this logic, because the relevant fitting is done inside a dedicated *_fit function for that family. Ideally, fair_compare would implement a similar logic.
friar_fit
fair_compare
Currently
frair_compare
relies on some dodgy logic for applying different options for mle2 for different curves.friar_fit
doesn't rely on this logic, because the relevant fitting is done inside a dedicated *_fit function for that family. Ideally,fair_compare
would implement a similar logic.