Using R package to implement Bayesian phase I/II dose-finding design for three outcomes

Ran20

Registered
#1
Dear all,

I am trying to implement the work done by Suyu Liu, “A Bayesian Phase I/II Trial Design for Immunotherapy”, using R, since the code attached with that work takes a lot of time (more than 20 hours, and the code not complete). So that I tried to use trialr package since it used rstan, but this package allowed me to use two outcomes ( toxicity, efficacy ) and the work of Liu used three outcomes (immune response, toxicity, and efficacy).

I tried to use the R package trialr for two outcomes using the utility for sensitivity analysis written in R code below (table 1 in the article), I want to see if I used the correct utility and to see how to add a third outcome ( immune response ) to the model. I attached to you the code and the output if you know how he produced the results, I hope you can feed me back.

and thanks in advance.


````
### My code###
rm(list = ls())
library(trialr)

#Utility
Uti <- array(0,c(2,3,2)) # order: tox, eff, immuno
Uti[,,1] <- matrix(c(0,0,50,10,80,35),nrow=2)
Uti[,,2] <- matrix(c(5,0,70,20,100,45),nrow=2)
N.max= 60 # patients
outcomes <- '1NNN 2NNT 3NNT 4NNN 5NTN'
doses = c(.1,.3,.5,.7,.9)


fit <- stan_efftox(outcomes,
real_doses =doses,
efficacy_hurdle = 0.5, toxicity_hurdle = 0.3,
p_e = 0.1, p_t = 0.1,
eff0 = 0.5, tox1 = 0.65,
eff_star = 0.7, tox_star = 0.25,
alpha_mean = -7.9593, alpha_sd = 3.5487,
beta_mean = 1.5482, beta_sd = 3.5018,
gamma_mean = 0.7367, gamma_sd = 2.5423,
zeta_mean = 3.4181, zeta_sd = 2.4406,
eta_mean = 0, eta_sd = 0.2,
psi_mean = 0, psi_sd = 1,
seed = 123)

ndoses <- length(fit$prob_tox)
plot(1:ndoses, fit$prob_tox, type="b", pch=19, xlab="Dose level", ylab="Probability of toxicity", ylim=c(0,max(fit$prob_tox) + 0.15), col="green")
points(1:ndoses,fit$prob_eff, type="b", pch=18, col="blue")
abline(h=0.3, lwd=2, lty=4, col = "red")
legend(1, 0.4, legend=c("Toxicity", "Effecacy"),
col=c("green", "blue"), lty=1:2, cex=0.8)
````
 

Attachments

Elsmar Forum Sponsor

Miner

Forum Moderator
Leader
Admin
#3
You may not find many people here that understand Bayesian statistics or R. I recommend that you also post this on TalkStats. There are several Bayesian experts as well as R experts there. However, they will know nothing about medical device standards.
 

Tidge

Trusted Information Resource
#4
I have to agree with @Miner . It is possible that someone here has enough familiarity with the precise tool, but the type of analysis you are trying to do isn't even in the same ballpark as medical device design/manufacturing so any specific feedback you would get from us here is likely to be 'uneven'.
 

Ran20

Registered
#5
I have to agree with @Miner . It is possible that someone here has enough familiarity with the precise tool, but the type of analysis you are trying to do isn't even in the same ballpark as medical device design/manufacturing so any specific feedback you would get from us here is likely to be 'uneven'.
I did, it is in the biostatics section since yesterday, and no response even yet



Thanks, @Miner, and @Tidge
 

Ran20

Registered
#7
I did, it is in the biostatics section since yesterday, and no response even yet



Thanks, @Miner, and @Tidge
My goal is: to use their idea to select the best dose in the first stage and to continue in a second stage with only 2 arms clinical trial and the best dose. (may there is another way to do that?) That why I am looking for the complete tool.
 
Thread starter Similar threads Forum Replies Date
M Any alternative method instead of using GR&R Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 26
R Using RPN to Confirm Risk Reduced to an Acceptable Level Risk Management Principles and Generic Guidelines 12
P Comparing Two Test Variables Using Attribute Data Inspection, Prints (Drawings), Testing, Sampling and Related Topics 0
J Using real time shelf life study as accelerated ISO 13485:2016 - Medical Device Quality Management Systems 1
C Clinical Trial using Prototype devices (EU MDR & ISO 14155) EU Medical Device Regulations 4
J Using an online software to maintain your QMS Quality Assurance and Compliance Software Tools and Solutions 7
S Process Monitoring using SPC software Quality Assurance and Compliance Software Tools and Solutions 6
R Using Scrapped NC items for training Medical Device and FDA Regulations and Standards News 15
M What is the Risk of Using Obsolete Versions of C=0 & ANSI/ ASQ Z1.4 Sampling Plans? ISO 13485:2016 - Medical Device Quality Management Systems 8
F Using non-randomized clinical study for change in existing 510(k) device? US Food and Drug Administration (FDA) 1
J Using MD on a flight EU Medical Device Regulations 9
K Using Google Drive/Docs ISO 13485:2016 - Medical Device Quality Management Systems 32
J What risk to cover when NOT using ISO 17025 accredited/certified labs for calibration ISO 17025 related Discussions 3
T Poisson regression using Minitab Statistical Analysis Tools, Techniques and SPC 3
T Using NICE for guidance during CER CE Marking (Conformité Européene) / CB Scheme 0
T Using Review articles from Pubmed for CER CE Marking (Conformité Européene) / CB Scheme 8
Tagin Using a meme generator to poke fun at quality Funny Stuff - Jokes and Humour 2
D Finding Optimum Design Parameters using Taguchi method? Using Minitab Software 2
V MSA - Using a R&R study for a Tape Measure Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 19
D Using electronic lab notebooks in the design control process ISO 13485:2016 - Medical Device Quality Management Systems 3
M Using a Non Certified vendor Supplier Quality Assurance and other Supplier Issues 8
H Using/Selling power banks with your product as a "mobile version" CE Marking (Conformité Européene) / CB Scheme 3
cgaro62 Using internal audits as part of document reviews Document Control Systems, Procedures, Forms and Templates 21
R Select the 1 Supplier based on the Parts Durability from 6 Supplier Samples using Minitab Using Minitab Software 11
M MSA angle issue - Nylon parts using Aberlink 3D Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 0
D Question on using audit checklist ISO 13485:2016 ISO 13485:2016 - Medical Device Quality Management Systems 20
J Using of CE marking - Two CE markings on the product CE Marking (Conformité Européene) / CB Scheme 5
S Defibrillator Protection applicability When using Multiple applied parts IEC 60601 - Medical Electrical Equipment Safety Standards Series 0
P Using Zinc Plated Steel in a Cleanroom Other Medical Device Related Standards 3
J Incoming Inspection Records using Excel File ISO 13485:2016 - Medical Device Quality Management Systems 2
J Using ring gauges General Measurement Device and Calibration Topics 2
M Load Cell Calibration using a totalizer on a flow meter General Measurement Device and Calibration Topics 0
P Can Neoprene be Cleaned Using Isopropyl Alcohol (IPA) Manufacturing and Related Processes 4
GreatNate Anyone using the Intellect QMS software? Quality Assurance and Compliance Software Tools and Solutions 1
chris1price Sterilization using beta radiation Other Medical Device Related Standards 2
M Using the phrase "herein referred to" Document Control Systems, Procedures, Forms and Templates 8
B Struggling with using the 5.6 version Ford Capacity Analysis Report APQP and PPAP 5
cnbrosa Study Type 1 on a CMM using a measuring support Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 4
rerusk1 MRB (Material Review Board) Process using MS Sharepoint or MS Teams Manufacturing and Related Processes 2
K 510k FDA review, will they accept Biocompatibility result generated using feasibility product lots? 21 CFR Part 820 - US FDA Quality System Regulations (QSR) 8
B AS9100D 7.1.5.2 Calibration or Verification Method using outside cal lab AS9100, IAQG, NADCAP and Aerospace related Standards and Requirements 1
U Medical Device CE Marking - Using a disposable bearing CE Marking (Conformité Européene) / CB Scheme 3
D Calibration tolerance question using Pipettes Medical Device and FDA Regulations and Standards News 3
D Risk Analysis using Monte Carlo Simulation instead of Scoring and Heat Map Risk Management Principles and Generic Guidelines 2
W Using tailoring guidelines to tailor a QMS procedure ISO 9000, ISO 9001, and ISO 9004 Quality Management Systems Standards 2
Y We found out we have been using a equipment without validation for past 4 years Quality Manager and Management Related Issues 6
D Using Laboratory Notebooks in R&D and Design and Development ISO 13485:2016 - Medical Device Quality Management Systems 3
C Importer shell game - Using a third party logistics provider (3PL) in the EU EU Medical Device Regulations 5
S Work performed in Canada on US patients using US device Canada Medical Device Regulations 1
S Is using ANSI/ASQ Z1.4-2008 the correct sampling plan to determine Pass/Fail of Apparel measurements? AQL - Acceptable Quality Level 8

Similar threads

Top Bottom