CrossCarry

CRAN status CRAN downloads R-CMD-check Codecov test coverage DOI

Installation

You can install the stable release from CRAN:

install.packages("CrossCarry")

Or the development version from GitHub:

# install.packages("remotes")
# remotes::install_github("Cruzalirio/CrossCarry")
install.packages("CrossCarry", repos = c('https://cruzalirio.r-universe.dev', 'https://cloud.r-project.org'))

Basic Example

The package provides tools to analyze crossover designs with carry-over effects using Generalized Estimating Equations (GEE).

library(CrossCarry)
data("Arterial")

# Create carry-over dummies
cc <- createCarry(data = Arterial, treatment = "Treatment", 
                  period = "Period", id = "Subject", carrySimple = TRUE)

# Fit a basic GEE model
fit <- CrossGEE(response = "Pressure", treatment = "Treatment", 
                period = "Period", id = "Subject", 
                carry = cc$carryover, data = cc$data,
                correlation = "AR-M", Mv = 1)

# Print model QIC criteria
fit$QIC

Citation

If you use CrossCarry, please cite the methodological papers:

You can also obtain the citation directly in R:

citation("CrossCarry")

Applications

CrossCarry has been applied in different contexts: