xover {prome} | R Documentation |
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,...)
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. |
Value
'stat': summary statistics.
'best': estimates using Bayesian analysis.
Examples
xover(y0=rnorm(20,34,1.5),y1=rnorm(20,30,2),
y2=rnorm(20,25,1.5),group=round(runif(20)<0.5))
[Package prome version 1.9.1.0 Index]