Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining intitial value for parameters as a vector for each parameter #100

Open
Mehdilotfi7 opened this issue Oct 19, 2022 · 1 comment
Open

Comments

@Mehdilotfi7
Copy link

Hi, and thank you for your excellent package.
I am trying to estimate the parameters of an age structure model, so in this kind of model, elements of the initial value for the parameters are vectors; when I define the initial condition as above, I receive this error:
How can I solve it? Is there any method for that?
MethodError: no method matching (Vector)(::Matrix{Float64})
Closest candidates are:
(Array{T, N} where T)(::AbstractArray{S, N}) where {S, N} at ~/.local/julia-1.7.3/share/julia/base/boot.jl:479
(Vector)() at ~/.local/julia-1.7.3/share/julia/base/baseext.jl:38
(Vector)(::DataFrames.GroupKey) at ~/.julia/packages/DataFrames/zqFGs/src/groupeddataframe/groupeddataframe.jl:617

@wildart
Copy link
Owner

wildart commented Oct 22, 2022

How do you define your initial population? From the error it looks like your population is defined as matrix, you may want to convert it into vector of vectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants