Ordinal Dominance Statistics: File output of statistics for multiple comparisons

Share:

Description

Writes ordinal dominance statistics to tailored target output file, e.g. for purposes of multiple comparisons.

Usage

1
2
orddom_f(x,y, ... ,outputfile="orddom_csv.txt",quotechar=TRUE,decimalpt=".",
                separator="\t",notavailable="NA",endofline="\n")

Arguments

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.); see orddom for details.

y

A 1-column matrix with optional column name containing all n_y values of group Y or 2 (e.g. treatment or post-test group); see orddom for details.

...

Other arguments to be passed on to the orddom function (such as e.g. paired, studdist, symmetric, x.name, description etc.; see orddom for details.)

outputfile

A filename for the report should be given here. The report as standard text file is written to the current working directory. All data are appended to this file. If the file does not exist initially, row headers are produced.

quotechar

By default, string outputs are quoted.

decimalpt

By default, numeric outputs use the colon as decimal point. Where commas are used instead, this argument should be set to ...,decimalpt=",",... .

separator

By default, field entries are separated by tabulators (...,separator="\tab",...). If, for example, .csv files are to be produced using the semicolon as the field separator, this argument should be set to ...,separator=";",....

notavailable

By default, if field entries are ot available, "NA" is printed to the file. Other values to be printed can be given, e.g. ...,notavailable="",... or ...,notavailable="NULL",....

endofline

By default, a carriage return denotes the end of the single output line. Other values may be given, such as the IETF standard for csv files (...,endofline="\r\n",...).

Author(s)

Jens J. Rogmann, University of Hamburg, Department of Psychology,
Hamburg, Germany (Jens.Rogmann@uni-hamburg.de)

See Also

orddom

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
# Example: Experiment with experimental group "ex" and control group "con"
# Data sets:
ex_pre<-c(52,53,55,59,57)
con_pre<-c(51,56,54,60,56)
ex_post<-c(58,62,63,64,69)
con_post<-c(48,58,57,62,55)
# Two independent and two paired comparisons are possible
# These are to be written to a csv-file
# Alpha-level = 10
orddom_f(con_pre,ex_pre,alpha=0.025,decimalpt=",",description="EXP 01: Between groups at time 01")   
# result delta=-.04
orddom_f(con_post,ex_post,alpha=0.025,decimalpt=",",description="EXP 01: Between groups at time 02") 
# result delta=.84
orddom_f(ex_pre,ex_post,alpha=0.025,paired=TRUE,decimalpt=",",description="EXP 01: Within exp 01 to 02") 
# result delta_b=.9
orddom_f(con_pre,con_post,alpha=0.025,paired=TRUE,decimalpt=",",description="EXP 01: Within con 01 to 02") 
# result delta_b=.2
file.show(file.path(getwd()),"orddom_csv.txt")

## End(Not run)