dwinter / dfe

Fitting, simulating and generally exploring the distribution of fitness effects from MA studies
0 stars 0 forks source link

Generic fitting function #7

Open dwinter opened 9 years ago

dwinter commented 9 years ago

It might make the code easier maintain if we wrap optim or stats4::mle with a generic fitting function designed to meet our models.

Doing so we could create named-arguments for each model arg and write acessors for the returned fit to allow inspection/plotting

dwinter commented 9 years ago

I've started this on the branch 'fitting'. The basic plan is to have a closure that wraps optimx.