-
Notifications
You must be signed in to change notification settings - Fork 15
/
NAMESPACE
137 lines (93 loc) · 3.74 KB
/
NAMESPACE
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Make C code recognisable
useDynLib("ReIns", .registration=TRUE)
importFrom("stats", "approxfun", "cor", "dexp", "dgamma", "dlnorm", "dnorm", "dweibull", "ecdf", "knots",
"nlm", "optim", "optimise", "pexp", "pgamma", "plnorm", "pnorm", "pweibull",
"quantile", "qexp", "qgamma", "qlnorm", "qnorm", "qweibull", "runif", "stepfun", "uniroot", "var")
importFrom("graphics", "abline", "legend", "lines", "par", "plot")
importFrom("methods", "is")
importFrom("survival", "Surv", "survfit")
importFrom("utils", "tail")
# Import function from Rcpp to import registered functions
importFrom("Rcpp", "sourceCpp")
# Splicing
importFrom("parallel", "detectCores", "makePSOCKcluster", "stopCluster")
importFrom("doParallel", "registerDoParallel")
importFrom("foreach", "%do%", "%dopar%", "foreach")
#########################
# Random
export("dpareto","ppareto","qpareto","rpareto")
export("dtpareto","ptpareto","qtpareto","rtpareto")
export("dgpd","pgpd","qgpd","rgpd")
export("dtgpd","ptgpd","qtgpd","rtgpd")
export("depd","pepd","qepd","repd")
export("dburr","pburr", "qburr", "rburr")
export("dtburr","ptburr", "qtburr", "rtburr")
export("dfrechet","pfrechet", "qfrechet", "rfrechet")
export("dtfrechet","ptfrechet", "qtfrechet", "rtfrechet")
export("dtexp","ptexp", "qtexp", "rtexp")
export("dtlnorm","ptlnorm", "qtlnorm", "rtlnorm")
export("dtweibull","ptweibull", "qtweibull", "rtweibull")
#########################
# Plots
export("ExpQQ", "MeanExcess")
export("ParetoQQ","ParetoQQ_der")
export("LognormalQQ","LognormalQQ_der")
export("WeibullQQ","WeibullQQ_der")
#########################
# Estimators for EVI for Pareto-type tails
export("Hill","Prob", "Quant", "Return")
export("Weissman.p", "Weissman.q", "Weissman.r")
export("Hill.2oQV", "Hill.kopt", "Quant.2oQV", "Weissman.q.2oQV")
export("EPD","EPDfit","ProbEPD","ReturnEPD")
export("Scale", "Scale.2o", "ScaleEPD")
#########################
# General estimators for EVI
export("genQQ", "generalizedQQ")
export("genHill", "ProbGH", "QuantGH", "ReturnGH")
export("Moment", "ProbMOM", "QuantMOM", "ReturnMOM")
export("LStail", "TSfraction")
export("POT", "GPDmle", "GPDfit", "GPDresiduals")
export("ProbGPD", "QuantGPD","ReturnGPD")
#########################
# Regression estimators
export("ScaleReg")
export("ProbReg", "QuantReg")
export("crHill", "crSurv", "crParetoQQ")
#########################
# Censoring estimators
export("KaplanMeier", "Turnbull")
export("cExpQQ","cLognormalQQ","cParetoQQ","cWeibullQQ")
export("cHill","cProb","cQuant","cReturn")
export("cEPD","cProbEPD","cReturnEPD")
export("cgenHill", "cProbGH", "cQuantGH", "cReturnGH")
export("cMoment", "cProbMOM", "cQuantMOM", "cReturnMOM")
export("cGPDmle", "cPOT", "cProbGPD", "cQuantGPD", "cReturnGPD")
export("icHill", "icParetoQQ")
#########################
# Truncation estimators
export("trHill", "trDT", "trEndpoint", "trQuant", "trQuantW", "trProb")
export("trTest")
export("trParetoQQ")
export("trMLE", "trDTMLE", "trEndpointMLE", "trQuantMLE", "trProbMLE")
export("trTestMLE")
#####################################
# Splicing
export("SpliceFitPareto", "SpliceFitHill", "SpliceFiticPareto", "SpliceFitGPD")
export("dSplice", "pSplice", "qSplice", "rSplice")
export("SpliceECDF", "SpliceTB", "SplicePP", "SplicePP_TB",
"SpliceQQ", "SpliceQQ_TB", "SpliceLL", "SpliceLL_TB", "MeanExcess_TB")
# S3
export("MEfit", "EVTfit", "SpliceFit")
S3method(summary, SpliceFit)
S3method(tex, SpliceFit)
#####################################
# Risk measures
export("ExcessPareto", "ExcessHill", "ExcessEPD", "ExcessGPD")
export("ExcessSplice")
export("VaR", "CTE", "ES")
######################################
# Approximations
export("pClas", "pGC", "pEdge")
######################################
# Multivariate
export("stdf", "stdf2")