Learn R Programming

Crossover (version 0.1-12)

design.efficiency: Create the design matrix, variance-covariance matrix, the variance of each pairwise comparison and the efficicency of each pairwise comparison for a cross-over design

Description

Function to read in a cross-over design and create the design matrix X, the variance-covariance matrix of the parameter estimates (X'X)^-1, the variance of each pairwise comparison and the efficicency of each pairwise comparison.

Usage

design.efficiency(design)

Arguments

design
Cross-over design.

Value

  • list(xmat.no.subjects=xmat.no.subjects, var.trt.pair=var.trt.pair,eff.trt.pair=eff.trt.pair,av.eff.trt.pair=av.eff.trt.pair, var.trt.pair.adj=var.trt.pair.adj,eff.trt.pair.adj=eff.trt.pair.adj,av.eff.trt.pair.adj=av.eff.trt.pair.adj)

Details

This is done for a model with fixed subject effects, period effects and treatments and for the above model with first-order carry-over effects added.

See the vignette of this package for further details.

References

Jones, B., & Kenward, M. G. (2003). Design and analysis of cross-over trials (Vol. 98). Chapman & Hall.

Examples

Run this code
data(fletcher)
design.efficiency(fletcher1)

Run the code above in your browser using DataLab