GithubHelp home page GithubHelp logo

Comments (4)

atredennick avatar atredennick commented on August 27, 2024

@ha0ye Can rEDM::simplex() make forecasts of unobserved future states when modeling a univariate (i.e., no input data) time series? I've tried tacking on NA to the state vector, but this doesn't seem to work. Thanks!

from redm.

ha0ye avatar ha0ye commented on August 27, 2024

Hi @atredennick, are you trying to do a 1-step ahead forecast or a whole series of forecasts to simulate a future trajectory?

If it's the former, you might need some tweaking of the pred params, so that there are enough lags to form the state vector to predict from:

ts <- c(rnorm(54), NA)
lib <- c(1, 50)   # use points 1-50 to construct model
pred <- c(51, 55) # use points 51-54 to construct state vector, 
                  # predict point 55

out <- simplex(ts, lib = lib, pred = pred, 
               E = 4, stats_only = FALSE)
out$model_output

from redm.

atredennick avatar atredennick commented on August 27, 2024

Thank you @ha0ye! That works great. Yes, I am just trying to do 1-step ahead forecasts at the moment. Ideally, I'd actually just like to just simulate time-series from the fitted model from, say, different initial conditions. Looks like the best way to do that with rEDM is to iteratively forecast. But maybe I'm wrong.

Thanks again.

from redm.

ha0ye avatar ha0ye commented on August 27, 2024

Great! Yeah, the code is built to maintain similar operations as legacy code, so it doesn't function in quite the same way as other kinds of models in R, where the model object can be used directly to iteratively make forecasts. You'll probably want to write some kind of wrapper function to make that easier.

from redm.

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.