xover | R Documentation |
A Bayesian hierachical model to analysis data from 2x2 (AB/BA) crossover trials.
xover(group,y1,y2,y0,...)
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. |
'stat': summary statistics.
'best': estimates using Bayesian analysis.
xover(y0=rnorm(20,34,1.5),y1=rnorm(20,30,2),
y2=rnorm(20,25,1.5),group=round(runif(20)<0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.