Giter VIP home page Giter VIP logo

psymonitor's People

Contributors

itamarcaspi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

psymonitor's Issues

Repeating the same rnorm

Hi!
I think there is a bug on line 77 in cvPSYwmboot
wn <- matrix(rnorm(1), nrow = Tb, ncol = nboot) repeats the same realization across the matrix, my interpretation of the paper is that something like:
wn <- matrix(rnorm(Tb*nboot), nrow = Tb, ncol = nboot)
would be more appropriate? Great package!

Issues on the cvPSYmc.R function

Hello Itamar,

I would like to raise three issues about the cvPSYmc.R function.

The first is that it seems to me that there is an error in the final calculation of the quantiles:

Q_PSY <- as.matrix(quantile(MPSY, qe), na.rm = TRUE)

The above calculation should not be done on the full MPSY data frame, but on the maximum of each line, like this:

aux <- apply(MPSY, MARGIN = 1, FUN = max, na.rm = T)
Q_PSY <- quantile(aux, qe)

Am I right?

The second issue is about the Tb variable that plays no role on the function.

And finally, this part of the code is not working properly:

if (useParallel == TRUE && missing(nCores)) { nCores <- detectCores() - 1 } else { nCores <- 1 }

I think that the problem is on the missing funtion.

Excuse me for any inaccuracy or error I eventually made. Thank you very much for the package!

Compatibility of discontinuous data

Hi,

Thank you very much for sharing your code.

A very quick question. My input is discontinuous data that starts from 2017.12, but during 2018.01 - 2018.03, the price series is n/a due to some reason like no public trading.

The error message seems to be some issue relevant to the n/a in the data:

Error in betaM[[lag0]] :
attempt to select less than one element in get1index

The ideal output is something like this (done by GSADF test in Matlab):
ๅ›พ9

Many thanks in advance!

Best wishes.

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.