36: Using AI to generate R Code for Statistical Computations in Clinical Trial Designs

Subhajit Sengupta Co-Author
Cytel
 
Sudipta Basu Co-Author
Cytel
 
J. Kyle Wathen Co-Author
Cytel
 
Subhajit Sengupta First Author
Cytel
 
Subhajit Sengupta Presenting Author
Cytel
 
Tuesday, Aug 5: 10:30 AM - 12:20 PM
1148 
Contributed Posters 
Music City Center 
Commercial software for clinical trial design can have limitations. To address this, customized R code is often integrated with software tools to either replace or enhance native capabilities so that users can simulate with flexible design. To assist in this process, we offer an AI coding assistant that helps with writing compatible R functions. This AI assistant is particularly beneficial for new users and ensures compatibility in terms of the input/output parameters allowed in the R function template.

The current integration points we are focusing on include:
* Simulating patients' responses for Binary, Continuous, Time-to-event, and Repeated-measure endpoints
* Analyzing simulated data for the above endpoints
* Randomization of patients
* Customized enrollment and dropout mechanism

Our platform, powered by Azure OpenAI's GPT-4 LLM, integrates with Cytel's in-house R package, CyneRgy, for custom adaptive clinical trial designs. We provide testing code for AI-generated R functions, with features to detect errors. We adhere to Azure OpenAI's data protection policies to ensure security. At present, access to our platform is exclusive to Cytel's East Horizon users.

Keywords

Generative-AI

R-Coding-Assistant

Custom-Adaptive-Clinical-Trial-Design

LLM

R-Integration 

Main Sponsor

Section on Statistical Computing