Learn R Programming

prome (version 1.9.1.0)

xover: Bayesian analysis of 2x2 crossover trial data

Description

A Bayesian hierachical model to analysis data from 2x2 (AB/BA) crossover trials.

Usage

xover(group,y1,y2,y0,...)

Value

  • `stat`: summary statistics.

  • `best`: estimates using Bayesian analysis.

Arguments

y0,y1,y2

vectors of data from baseline, period 1, and period 2, respectively.

group

group or treatment sequence.

...

other parameters, i.e. 'control' for model fitting.

Examples

Run this code
 # \donttest{
   xover(y0=rnorm(20,34,1.5),y1=rnorm(20,30,2),
         y2=rnorm(20,25,1.5),group=round(runif(20)<0.5))
 # }

Run the code above in your browser using DataLab