-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfigureFunctionExt.R
More file actions
55 lines (36 loc) · 1.34 KB
/
Copy pathfigureFunctionExt.R
File metadata and controls
55 lines (36 loc) · 1.34 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# I made a separate function for the external data because I only use the SDF results from those data
# The separate function is shorter, then.
figureFunctionExt<-function(n.use, path.stem) {
# same for all characteristics
fname.reg.KS1<-paste(path.stem,"resultsKSWeibull1siden",n.use,"Ext.RData", sep="") # KS 1-sided
fname.reg.KS2<-paste(path.stem,"resultsKSWeibull2siden",n.use,"Ext.RData", sep="") # KS 2-sided
fname.reg.Ord1<-paste(path.stem,"resultsSOWeibull1siden",n.use,"Ext.RData", sep="") # Stoch ord 1-sided
fname.reg.Ord2<-paste(path.stem,"resultsSOWeibull2siden",n.use,"Ext.RData", sep="") # Stoch ord 2-sided
# load and assign to objects
# KS 1sided
load(fname.reg.KS1)
results.SDF.KS1side<-results.SDF.wb # SD without dropping
# make room for KS2 (for good measure)
rm(results.SDF.wb)
# KS 2-sided
load(fname.reg.KS2)
results.SDF.KS2side<-results.SDF.wb # SD without dropping
rm(results.SDF.wb)
# SO 1-sided
load(fname.reg.Ord1)
results.SDF.SO1side<-results.SDF.wbord # SD without dropping
# make room for SO2
rm(results.SDF.wbord)
# SO 2-sided
load(fname.reg.Ord2)
results.SDF.SO2side<-results.SDF.wbord # SD without dropping
rm(results.SDF.wbord)
# gather the vectors for output
list(sdF=c(
results.SDF.KS2side,
results.SDF.KS1side,
results.SDF.SO1side,
results.SDF.SO2side
)
)
}