Two-arm Analysis for Continuous Data with Covariates from Raw Data using rpact
Analysis
Means
This document provides an example for importing raw data from a csv file, calculating estimated adjusted (marginal) means (EMMs, least-squares means) for a linear model, and performing two-arm interim analyses with these data. In this vignette, the case of an analysis of covariance (ANCOVA) model is illustrated.
Author
Friedrich Pahlke and Gernot Wassmer
Published
March 8, 2023
Introduction
This vignette shows how to use the function getDataset() as an utility function to process adjusted means and estimated standard deviations from raw data, how to convert the raw data into an rpact dataset, and finally how to use this information for the analysis at interim and the final stage. Essentially, this is through the use of the CRAN package emmeans that allows the extraction of least squares means from a specified model which is an ANCOVA model in this vignette.
System: rpact 3.3.4, R version 4.2.2 (2022-10-31 ucrt), platform: x86_64-w64-mingw32
To cite R in publications use:
R Core Team (2022). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.
To cite package ‘rpact’ in publications use:
Wassmer G, Pahlke F (2023). rpact: Confirmatory Adaptive Clinical Trial Design and Analysis. https://www.rpact.org, https://www.rpact.com, https://github.com/rpact-com/rpact.