general.carryover {Crossover}R Documentation

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", 8 = "Second-order carry-over effects"

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.

Details

See the vignette of this package for further details.

Value

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

Author(s)

Kornelius Rohmeyer rohmeyer@small-projects.de

References

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

Examples


general.carryover(getDesign("fletcher1"), model=1)
general.carryover(getDesign("fletcher1"), model=2)
general.carryover(getDesign("fletcher1"), model=3)
general.carryover(getDesign("switchback4t"), model=7)


[Package Crossover version 0.1-22 Index]