lbittarello / Microeconometrics.jl

Microeconometric estimation in Julia
Other
30 stars 11 forks source link

Please provide an initial x for your Optim objectives #5

Closed pkofod closed 6 years ago

pkofod commented 6 years ago

The style you use here https://github.com/lbittarello/Microeconometrics.jl/blob/master/src/estimation/logit.jl#L93 and other places is no longer valid. I suggest you seed your constructor

TwiceDifferentiable(f, g!, fg!, h!, β, eltype(β))

for now. The last positional argument eltype(β) shouldn't be there, that's a bug. I'll add the following constructor asap.

TwiceDifferentiable(f, g!, fg!, h!, β)
pkofod commented 6 years ago

Constructor version two should work now

lbittarello commented 6 years ago

Thanks for the warning!