gunhanb / titepk_sequential Goto Github PK
View Code? Open in Web Editor NEWTITE-PK method for sequential phase I trials with multiple schedules
License: Other
TITE-PK method for sequential phase I trials with multiple schedules
License: Other
After a discussion with Burak Günhan, a question about the data attached to the code for the TITE-PK model remained unanswered. Why are there lines in the data file that actually correspond to the dose administration data for each patient at time t=0 and lines with "strange" log dose and compartment number values at time t=+2 weeks between the previous lines? I can't understand the meaning and usefulness of this in the code, when there is obviously one.
You can find below a screenshot of the data for the file dat_RAD_daily to illustrate the question:
While trying to run the available code on the main executing R file (TITEPK_run.R), I wasn't able to run the expose_stan_functions line command to import functions written on Stan files into the R environment using R version 4.2.3 (2023-03-15) and rstan version 2.21.8 (StanHeaders_2.26.27). Instead of executing correctly, I got the following error :
Error: $ operator is invalid for atomic vectors
After discussing directly with Burak Günhan, it became clear that the problem was coming from the version of rstan and its dependencies and a solution was find using online ressource that already faced this problem : https://discourse.mc-stan.org/t/expose-stan-functions-not-working-after-updating-rstan-and-r/25569/20
The solution used to solve the issue was to run the following code lines to install another rstan version in which the issue is solved:
remove.packages(c("rstan", "StanHeaders"))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
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.