|
8 | 8 | # vi) output should be a matrix (OK)) with some functionality (see odrered function)
|
9 | 9 | # v) create new list for fitting all possible distribution with different
|
10 | 10 | # parametrizations (OK)
|
11 |
| -#------------------------------------------------------------------------ |
12 |
| -#------------------------------------------------------------------------ |
13 |
| -#------------------------------------------------------------------------ |
14 |
| -########################################################################## |
| 11 | +#------------------------------------------------------------------------------- |
| 12 | +#------------------------------------------------------------------------------- |
| 13 | +#------------------------------------------------------------------------------- |
| 14 | +################################################################################ |
15 | 15 | # this grouping was checked on the 27-4-18
|
16 | 16 | #-------------------------------------------------------------------------------
|
17 | 17 | # the grouping of distributions
|
18 |
| -#-------------------------------------------------------------------------------# this |
19 |
| -# Group of distribution with interval ranging from -infinity to +infinity |
| 18 | +#------------------------------------------------------------------------------- |
| 19 | +# this |
| 20 | +# group of distribution with interval ranging from -infinity to +infinity |
20 | 21 | .realline <- c( "NO", "GU", "RG" ,"LO", "NET", # 2 par
|
21 | 22 | "TF", "TF2", "PE","PE2", "SN1", "SN2", "exGAUS", # 3 par
|
22 | 23 | "SHASH", "SHASHo","SHASHo2", # 4 par
|
23 | 24 | "EGB2", "JSU", "JSUo", # 4 par
|
24 | 25 | "SEP1", "SEP2", "SEP3", "SEP4", # 4 par
|
25 | 26 | "ST1", "ST2", "ST3", "ST4", "ST5", "SST", # 4 par
|
26 | 27 | "GT")
|
27 |
| -#-------------------------------------------------------------------------------- |
28 |
| -#-------------------------------------------------------------------------------- |
| 28 | +#------------------------------------------------------------------------------- |
| 29 | +#------------------------------------------------------------------------------- |
29 | 30 | # Group of distribution with interval ranging from 0 to +infinity
|
30 | 31 | .realplus <- c( "EXP", # 1 par
|
31 | 32 | "GA","IG","LOGNO", "LOGNO2","WEI", "WEI2", "WEI3", "IGAMMA",
|
32 | 33 | "PARETO2", "PARETO2o", "GP", # 2 par
|
33 | 34 | "BCCG", "BCCGo", "exGAUS", "GG", "GIG", "LNO", # 3 par
|
34 | 35 | "BCTo", "BCT", "BCPEo", "BCPE", "GB2") # 4 par
|
35 |
| -#-------------------------------------------------------------------------------- |
36 |
| -#-------------------------------------------------------------------------------- |
| 36 | +#------------------------------------------------------------------------------- |
| 37 | +#------------------------------------------------------------------------------- |
37 | 38 | # Group of distribution with interval ranging from 0 to 1
|
38 | 39 | .real0to1 <- c("BE", "BEo", # 2 par
|
39 | 40 | "BEINF0", "BEINF1", "LOGITNO", "SIMPLEX", #2 par
|
40 | 41 | "BEOI", "BEZI", # 3 par
|
41 | 42 | "BEINF", # 4 par
|
42 | 43 | "GB1") # par
|
43 | 44 |
|
44 |
| -#-------------------------------------------------------------------------------- |
45 |
| -#-------------------------------------------------------------------------------- |
| 45 | +#------------------------------------------------------------------------------- |
| 46 | +#------------------------------------------------------------------------------- |
46 | 47 | # Group of distribution with interval ranging from -infinity to +infinity (.realline) or 0 to +infinity (.realplus)
|
47 | 48 | .realAll <- union(.realline, .realplus)
|
48 | 49 | # .realAllALL <- c( "EXP", # 1 par
|
|
56 | 57 | # "SEP", "SEP1", "SEP2", "SEP3", "SEP4", "SEP", # 4 par
|
57 | 58 | # "ST1", "ST2", "ST3", "ST3C", "ST4", "ST5", "SST", "GT") # 4 par
|
58 | 59 |
|
59 |
| -#-------------------------------------------------------------------------------- |
60 |
| -#-------------------------------------------------------------------------------- |
| 60 | +#------------------------------------------------------------------------------- |
| 61 | +#------------------------------------------------------------------------------- |
61 | 62 | # Group of distribution for counting
|
62 | 63 | .counts <- c("PO", "GEOM", "GEOMo","LG", "YULE", "ZIPF", # 1 par
|
63 | 64 | "WARING", "GPO", "DPO", "BNB", "NBF", #
|
|
71 | 72 | .binom <- c("BI", # 1 par
|
72 | 73 | "BB", "DBI", "ZIBI", "ZABI", # 2 par
|
73 | 74 | "ZIBB", "ZABB")
|
74 |
| -#------------------------------------------------------------------------------------- |
75 |
| -#------------------------------------------------------------------------------------- |
76 |
| -#------------------------------------------------------------------------------------- |
77 |
| -#------------------------------------------------------------------------------------- |
78 |
| -#------------------------------------------------------------------------------------- |
| 75 | +#------------------------------------------------------------------------------- |
| 76 | +#------------------------------------------------------------------------------- |
| 77 | +#------------------------------------------------------------------------------- |
| 78 | +#------------------------------------------------------------------------------- |
| 79 | +#------------------------------------------------------------------------------- |
79 | 80 | chooseDist <- function(object,
|
80 | 81 | k = c(2, 3.84, round(log(length(object$y)),2)), # for the AIC
|
81 | 82 | type = c("realAll", "realline", "realplus","real0to1","counts", "binom", "extra" ),
|
|
0 commit comments