powered by
A Bayesian hierachical model to analysis data from 2x2 (AB/BA) crossover trials.
xover(group,y1,y2,y0,...)
`stat`: summary statistics.
`best`: estimates using Bayesian analysis.
vectors of data from baseline, period 1, and period 2, respectively.
group or treatment sequence.
other parameters, i.e. 'control' for model fitting.
# \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