inst/examples/srtBExample.R

if(interactive()){

data(mstData)

########################################################
## Bayesian analysis of cluster randomised trials     ##
########################################################

output <- srtBayes(Posttest~ Intervention+Prettest,
		intervention="Intervention",nsim=2000,data=mstData)

### Fixed effects
beta <- output$Beta
beta

### Effect size
ES1 <- output$ES
ES1

## Covariance matrix
covParm <- output$covParm
covParm

### plot random effects for schools

plot(output)

### plot posterior probability of an effect size to be bigger than a pre-specified threshold

plot(output,group=1)
}
germaine86/eefAnalytics_v10 documentation built on Feb. 20, 2021, 12:13 a.m.