Coder Social home page Coder Social logo

Comments (5)

drizopoulos avatar drizopoulos commented on May 26, 2024

Dear Florent,

It's a bit difficult to pinpoint where the problem occurs. Would it be possible to send a traceback()?

BTW, I have a working shiny app for dynamic predictions in JMbayes - you could have a look there.

Best,
Dimitris

from jm.

f-leborgne avatar f-leborgne commented on May 26, 2024

Dear Dimitris,

Thanks for your quick answer.

The traceback given by the shiny app is the following :
101: Summary.difftime
100: plot.survfitJM
99: renderPlot [C:\Users\Florent\Dropbox\shiny\pred/server.R#119]
89: reactive:plotObj
78: plotObj
77: origRenderFunc
76: output$graph
1: runApp

Hope it help.

Kind regards,
Florent

from jm.

drizopoulos avatar drizopoulos commented on May 26, 2024

Dear Florent,

According to the traceback the error seems to occur in the call to Summary.difftime(). However, unless I have missed something, nowhere in the code of plot.surfitJM() this function is called. Are you working with dates and calling summary() of difftime objects?

Best,
Dimitris

from jm.

f-leborgne avatar f-leborgne commented on May 26, 2024

Dear Dimitris,

After further investigation I finally found that the error was at line 89 of the function plot.survfitJM.R :
rng <- range(x$obs.times[[ii]], x$survTimes)
My problem was the following, the vector x$obs.times[[ii]] was a "Time differences in days" obtained from the difference between different shiny dateInput while it is required a character or numeric object.
I could simply solve the problem by adding the as.numeric() function to my difference of date when I create the initial data.frame from shiny Inputs.

Thanks a lot for your help.
Best,
Florent

from jm.

drizopoulos avatar drizopoulos commented on May 26, 2024

OK great that it is solved.

Best,
Dimitris

from jm.

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.