Giter VIP home page Giter VIP logo

Comments (4)

kingaa avatar kingaa commented on August 16, 2024

How about the following, where x is your named vector?

x <- do.call(rw.sd,as.list(x))

x is now in a format acceptable to mif2.

How have you been treating initial value parameters?

from pomp.

Jochen2222 avatar Jochen2222 commented on August 16, 2024

Thanks for your quick response. Your suggestion works fine.
The initial value parameters are pooled in a named vector which seems to work in mif2.
Thanks a lot for your help!

from pomp.

kingaa avatar kingaa commented on August 16, 2024

Hmm, I worry about what "seems to work" might actually mean. You might want to check that those initial value parameters are really being treated as such, i.e., that they are only being perturbed at the appropriate times.

BTW, it is possible to pass the rw.sd as a matrix, which may be better for your purposes. This should be an npar x ntimes matrix with rownames, where the (i,j)-th entry represents the s.d. of the (normal) perturbation to be applied to parameter i before advancing the state from time t[j-1] to time t[j].

from pomp.

Spatial-R avatar Spatial-R commented on August 16, 2024

In my opinion, x <- do.call(rw.sd,as.list(x)) to define the value of rw.sd may be unsuitable because this setting can not work on the initial parameter value which only need the random walk at the first time-point(ivp).
In my situation, a function to do the MIF2 with the paramnames in pomp varied by the analysis purposes was created. I follow your step to create a matrix which is npar x ntimes with rownames, but how can i pass it to the value of the rw.sd augment?

from pomp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.