Comments (5)
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.
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.
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.
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.
OK great that it is solved.
Best,
Dimitris
from jm.
Related Issues (20)
- Confusing point estimates for association parameters in current values + current slopes model HOT 5
- Potential bug in survfitJM.jointModel.R HOT 2
- error when applying weight function to ins()
- Error in aeqSurv(Y) : aeqSurv exception, an interval has effective length 0 HOT 1
- Query on getting back association parameter from data simulation in weibull-ph-agh
- Error in exp(coefs[1]) : non-numeric argument to mathematical function- fail to run CompRisk HOT 5
- Error in if (w_dif < specs$tol || iter == specs$maxiter) break : missing value where TRUE/FALSE needed
- Error in if (w_dif < specs$tol || iter == specs$maxiter) break : missing value where TRUE/FALSE needed
- Simulating data and GLMMPQL using JM
- issues in running survfitJM
- Error in aeqSurv(Y) : aeqSurv exception, an interval has effective length 0
- Error in d * log.hazard + log.survival : non-conformable arrays In addition: Warning message: In wk * rep(x$P, each = nk) : longer object length is not a multiple of shorter object length HOT 3
- Error in optim(thetas, opt.survPC, gr.survPC, method = "BFGS", control = list(maxit = if (it < : non-finite value supplied by optim HOT 3
- `survfitJM` expects newdata to be ordered by subject, and by time within each subject, else things go wrong
- Error in in optim(thetas, LogLik.splineGH, Score.splineGH, method = "BFGS", HOT 1
- ***caught segfault*** caused by Error in names(fit$coef) <- cname : 'names' attribute [4] must be the same length as the vector [2] HOT 5
- problem running fuction jointModel() in JM package HOT 1
- problem running fuction jointModel() in JM package with method = "Cox-PH-aGH" option HOT 1
- Question about the calculation of standard deviation in the "random effects parameterization"
- Extract fitted lme object from the jointModel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jm.