Skip to content

Commit c6f82ca

Browse files
committed
Delete SynthETIC functions
1 parent 20c4f13 commit c6f82ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+50
-3711
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData
4+
.Ruserdata

SPLICE/DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ Suggests:
4141
ChainLadder
4242
VignetteBuilder: knitr
4343
Depends:
44-
R (>= 2.10)
44+
R (>= 2.10),
45+
SynthETIC (>= 0.1.0)

SPLICE/NAMESPACE

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,16 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
S3method(plot,claims)
4-
export(claim_closure)
5-
export(claim_frequency)
63
export(claim_history)
74
export(claim_maRev_no)
85
export(claim_maRev_size)
96
export(claim_maRev_time)
107
export(claim_miRev_no)
118
export(claim_miRev_size)
129
export(claim_miRev_time)
13-
export(claim_notification)
14-
export(claim_occurrence)
15-
export(claim_output)
16-
export(claim_payment_delay)
17-
export(claim_payment_inflation)
18-
export(claim_payment_no)
19-
export(claim_payment_size)
20-
export(claim_payment_time)
21-
export(claim_size)
22-
export(claims)
23-
export(cv)
2410
export(dtri)
25-
export(generate_claim_dataset)
2611
export(generate_incurred_dataset)
27-
export(generate_transaction_dataset)
28-
export(get_Beta_parameters)
29-
export(get_Weibull_parameters)
3012
export(incurred_output)
3113
export(ptri)
3214
export(qtri)
33-
export(return_parameters)
3415
export(rtri)
35-
export(set_parameters)
36-
export(simulate_cdf)
37-
importFrom(ggplot2,aes)
38-
importFrom(ggplot2,ggplot)
39-
importFrom(magrittr,"%>%")
40-
importFrom(rlang,.data)
16+
import(SynthETIC)

SPLICE/R/SPLICE-package.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#' @keywords internal
2+
#' @import SynthETIC
23
"_PACKAGE"
34

45
# The following block is used by usethis to automatically manage

SPLICE/R/claims_class.R

Lines changed: 0 additions & 54 deletions
This file was deleted.

SPLICE/R/data.R

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -2,82 +2,6 @@
22
## Datasets Included in This Package ##
33
#############################################################################
44

5-
#' Claims Data in List Format
6-
#'
7-
#' A list containing a sample output from each of the simulation modules, in
8-
#' sequential order of the running of the modules. This is the test data
9-
#' generated when run with seed `20200131` at the top of the code.
10-
#'
11-
#' @format A `claims` object with 10 components:
12-
#' \describe{
13-
#' \item{frequency_vector}{vector; number of claims for each occurrence period, see also `claim_frequency()`.}
14-
#' \item{occurrence_list}{list; claim occurrence times for all claims that occurred in each of the period, see also `claim_occurrence()`.}
15-
#' \item{claim_size_list}{list; claim sizes for all claims that occurred in each of the period, see also `claim_size()`.}
16-
#' \item{notification_list}{list; notification delays for all claims that occurred in each of the period, see also `claim_notification()`.}
17-
#' \item{settlement_list}{list; settlement delays for all claims that occurred in each of the period, see also `claim_closure()`.}
18-
#' \item{no_payments_list}{list; number of partial payments for all claims that occurred in each of the period, see also `claim_payment_no()`.}
19-
#' \item{payment_size_list}{(compound) list; sizes of partial payments (without inflation) for all claims that occurred in each of the period, see also `claim_payment_size()`.}
20-
#' \item{payment_delay_list}{(compound) list; inter partial delays for all claims that occurred in each of the period, see also `claim_payment_delay()`.}
21-
#' \item{payment_time_list}{(compound) list; payment times (on a continuous time scale) for all claims that occurred in each of the period, see also `claim_payment_time()`.}
22-
#' \item{payment_inflated_list}{(compound) list; sizes of partial payments (with inflation) for all claims that occurred in each of the period, see also `claim_payment_inflation()`.}
23-
#' }
24-
#' @seealso \enumerate{
25-
#' \item Claim occurrence: \code{\link{claim_frequency}}, \code{\link{claim_occurrence}}
26-
#' \item Claim size: \code{\link{claim_size}}
27-
#' \item Claim notification: \code{\link{claim_notification}}
28-
#' \item Claim closure: \code{\link{claim_closure}}
29-
#' \item Claim payment count: \code{\link{claim_payment_no}}
30-
#' \item Claim payment size (without inflation): \code{\link{claim_payment_size}}
31-
#' \item Claim payment time: \code{\link{claim_payment_delay}}, \code{\link{claim_payment_time}}
32-
#' \item Claim inflation: \code{\link{claim_payment_inflation}}
33-
#' }
34-
#' @examples
35-
#' test_claims_object$frequency_vector
36-
"test_claims_object"
37-
38-
39-
#' Claims Dataset
40-
#'
41-
#' A dataset of 3,624 rows containing individual claims features.
42-
#'
43-
#' @format A data frame with 3,624 rows and 7 variables:
44-
#' \describe{
45-
#' \item{claim_no}{claim number, which uniquely characterises each claim.}
46-
#' \item{occurrence_period}{integer; period of ocurrence of the claim.}
47-
#' \item{occurrence_time}{double; time of occurrence of the claim.}
48-
#' \item{claim_size}{size of the claim (in constant dollar values).}
49-
#' \item{notidel}{notification delay of the claim, i.e. time from occurrence to notification.}
50-
#' \item{setldel}{settlement delay of the claim, i.e. time from notification to settlement.}
51-
#' \item{no_payment}{number of partial payments required for the claim.}
52-
#' }
53-
#' @examples
54-
#' # see a distribution of payment counts
55-
#' table(test_claim_dataset$no_payment)
56-
"test_claim_dataset"
57-
58-
59-
#' Transactions Dataset
60-
#'
61-
#' A dataset of 18,983 records of partial payments associated with the 3,624
62-
#' claims in `test_claim_dataset`.
63-
#'
64-
#' @format A data frame with 18,983 rows and 12 variables:
65-
#' \describe{
66-
#' \item{claim_no}{claim number, which uniquely characterises each claim.}
67-
#' \item{pmt_no}{payment number, identification number of partial payments in respect of a particular `claim_no`.}
68-
#' \item{occurrence_period}{integer; period of ocurrence of the claim.}
69-
#' \item{occurrence_time}{double; time of occurrence of the claim.}
70-
#' \item{claim_size}{size of the claim (in constant dollar values).}
71-
#' \item{notidel}{notification delay of the claim, i.e. time from occurrence to notification.}
72-
#' \item{setldel}{settlement delay of the claim, i.e. time from notification to settlement.}
73-
#' \item{payment_time}{double; time of payment (on a continuous time scale).}
74-
#' \item{payment_period}{integer; time of payment (in calendar period).}
75-
#' \item{payment_size}{size of the payment in constant dollar terms.}
76-
#' \item{payment_inflated}{actual size of the payment (i.e. with inflation).}
77-
#' \item{payment_delay}{inter partial delay associated with the payment.}
78-
#' }
79-
"test_transaction_dataset"
80-
815
#' Incurred Case Estimates Dataset
826
#'
837
#' A dataset of 31,250 records of transactions (partial payments and incurred

SPLICE/R/features_01_claim_occurrence.R

Lines changed: 0 additions & 66 deletions
This file was deleted.

SPLICE/R/features_02_claim_size.R

Lines changed: 0 additions & 58 deletions
This file was deleted.

SPLICE/R/features_03_claim_notification.R

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)