Description Usage Arguments Value Author(s) See Also Examples
Returns a graphical representation and interpretation of Cliff's delta
1 |
x |
A 1-column matrix with optional column name containing all n_x values or scores of group X or 1 (e.g. control or pretest group.). |
y |
A 1-column matrix with optional column name containing all n_y values of group Y or 2 (e.g. experimental or post-test group). For paired comparisons (e.g. pre-post), n_x = n_y is required. |
... |
Other arguments to be passed on to the |
dv |
(For paired comparisons (dv=3) only.) Determines which ordinal δ statistics are to be returned. Set to: |
Returns a graphical representation and text interpretation of Cliff's delta.
Jens Rogmann
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## Not run:
#Paired comparison combined inference (Data taken from Long et al. (2003), Table 4)
x2<-t(matrix(c(2,6,6,7,7,8,8,9,9,9,10,10,10,11,11,12,13,14,15,16),1))
colnames(x2)<-c("Incidental")
y2<-t(matrix(c(4,11,8,9,10,11,11,5,14,12,13,10,14,16,14,13,15,15,16,10),1))
colnames(y2)<-c("Intentional")
delta_gr(x2,y2,paired=TRUE,studdist=FALSE,dv=3)
#
#Journal of Statistics Education Dataset: Oral Contraceptive Drug Interaction Study
#Journal of Statistics Education, Volume 12, Number 1 (March 2004).
columns<-c("SubjectNo","Seq","Period","Treatment","EEAUC","EECmax","NETAUC","NETCmax")
data<-read.table("http://www.amstat.org/publications/jse/datasets/ocdrug.dat",col.names=columns)
#
#returns delta (between) and 95
x<-subset(data,data$Treatment==0)[6] #Placebo EECmax
colnames(x)<-"Placebo Phase"
y<-subset(data,data$Treatment==1)[6] #Treatment EECmax
colnames(y)<-"Treatment Phase"
delta_gr(x,y,paired=TRUE,onetailed=TRUE,dv=2)
#
#checks treatment groups delta equivalence in placebo phase
#returns delta and 95
plac<-subset(data,data$Treatment==0)
x<-subset(plac,plac$Period==1)[6] #control (placebo before drug)
colnames(x)<-"Control (before Drug)"
y<-subset(plac,plac$Period==2)[6] #experimental (placebo after drug)
colnames(y)<-"Exp (Placebo after Drug)"
delta_gr(x,y)
#
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.