wenjie2wang / dynsurv Goto Github PK
View Code? Open in Web Editor NEWDynamic Models for Survival Data
License: GNU General Public License v3.0
Dynamic Models for Survival Data
License: GNU General Public License v3.0
Feature request from Alberto Carmona Bayonas:
Hello, good evening Wenjie. I have a question. I see that you have introduced a new function in dynsurv for quick access to the mcmc draws of the coefficients. However, it would be nice to have the same function for survival differences. Currently you can use survDiff but you cannot calculate specific hypotheses. The mcmc's are accessible through the survDiff code, but it is a long, complex piece of code, and impossible to understand except for programmers. Therefore, it is difficult to transmit to a journal reviewer, if requested. Wouldn't you think it would be a good idea to simplify that part by generating a simple way to test hypotheses about survival differences over time?
If you are going to improve the package I think you could create a new function to obtain the posterior probability of hypotheses about the hazard ratio or survival differences. It would be similar to the hypothesis function in the brms package.
library(tidybayes)
mcmc<-mcmc_list$coef
mcmc<- as.tibble(mcmc)hypothesis <- function (time,value) ecdf(mcmc[mcmc$time==time,]$coef)(log(value))
For example:
hypothesis (time=7,value=0.85) # this would be the probability after 7 months, the hazard ratio is less than 0.85.
This could also be done for the difference in survival. In addition, a plot could be added to represent this posterior probability at various time points, and as a function of various values or priors...
Add a function to read in MCMC samples generated by bayesCox
to a self-explanatory output to allow users to obtain more estimates of their interest.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.