Code Monkey home page Code Monkey logo

titepk_sequential's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

titepk_sequential's Issues

Question on the structure of the available data files in the folder "data" (dat_RAD_daily/dat_RAD_combined)

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:
Screenshot_dat_RAD_daily_question

Failing to execute "expose_stan_functions(model_exposed_cached)" at line 68 in TITEPK_run.R on recent Rstan version

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")))

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.