Learn R Programming

Crossover (version 0.1-13)

general.carryover: Calculate variances of paramater contrasts

Description

Calculate variances of paramater contrasts

Usage

general.carryover(design, v = length(table(design)), model, ppp = 0.5,
  placebos = 1, contrasts)

Arguments

design
Cross-over design.
v
Number of treatments
model
Model - one of the following numbers or Strings: 1 = "Standard additive model", 2 = "Self-adjacency model", 3 = "Proportionality model", 4 = "Placebo model", 5 = "No carry-over into self model", 6 = "Treatment decay model", 7 = "Full set of interactions",
ppp
The proportionality parameter for the proportionality model.
placebos
The number of placebo treatments in the placebo model.
contrasts
Optionally a contrast matrix or a list of contrast matrix. If missing pairwise differences for treatment and carry-over parameters are calculated.

Value

  • A list with the variances of the pairwise differences or specified contrasts. If contrasts are not estimable, NA is returned for variances.

Details

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
general.carryover(getDesign("fletcher1"), model=1)
general.carryover(getDesign("fletcher1"), model=2)
general.carryover(getDesign("fletcher1"), model=3)
general.carryover(getDesign("switchback4t"), model=7)

Run the code above in your browser using DataLab