caceSRTBoot: CACE Analysis of Simple Randomised Trials.

Description Usage Arguments Value Examples

View source: R/eefAnalyticPerm_modified_05_02_2016.R

Description

caceSRTBoot performs is used for CACE analysis of simple randomised trials. Intervention variable must be coded as dummy with multiple analysis for multi-arms trials.

Usage

1
caceSRTBoot(formula, intervention, compliance, nBoot, data)

Arguments

formula

model specification of the form posttest ~ pretests+Intervention+....the model to be analysed. It is of the form y~x1+x2+..., where y is the outcome variable and X's are the predictors.

intervention

the name of the intervention variable as appeared in formula. This must be put in quotes. For example "intervention" or "treatment" or "group".

compliance

percentages of sessions attended by pupils.

nBoot

number of bootstrap required to generate bootstrap confidence interval. This must be specified.

data

data frame containing the data to be analysed.

Value

S3 mcpi object; a list consisting of

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(catcht)

############# SRT
caceOutput3<- caceSRTBoot(Posttest~ Prettest+ Intervention,
			intervention="Intervention",
			compliance = "Percentage_Attendance",
			nBoot=1000,data=catcht)

### visualising CACE ES

require(metafor)
forest(x=caceOutput3$CACE$ES, ci.lb=caceOutput3$CACE$LB, 
		ci.ub=caceOutput3$CACE$UB, xlab="CACE ES",
		slab=as.character(caceOutput3$CACE$Compliance), 
		xlim=c(-1,2), alim=c(-1,7), cex=1,lwd=1.5)

eefMLM documentation built on May 2, 2019, 5:46 p.m.

Related to caceSRTBoot in eefMLM...