R/data.R

#############################################################################
##                    Datasets Included in This Package                    ##
#############################################################################

#' Claims Data in List Format
#'
#' A list containing a sample output from each of the simulation modules, in
#' sequential order of the running of the modules. This is the test data
#' generated when run with seed `20200131` at the top of the code.
#'
#' @format A `claims` object with 10 components:
#' \describe{
#'   \item{frequency_vector}{vector; number of claims for each occurrence period, see also `claim_frequency()`.}
#'   \item{occurrence_list}{list; claim occurrence times for all claims that occurred in each of the period, see also `claim_occurrence()`.}
#'   \item{claim_size_list}{list; claim sizes for all claims that occurred in each of the period, see also `claim_size()`.}
#'   \item{notification_list}{list; notification delays for all claims that occurred in each of the period, see also `claim_notification()`.}
#'   \item{settlement_list}{list; settlement delays for all claims that occurred in each of the period, see also `claim_closure()`.}
#'   \item{no_payments_list}{list; number of partial payments for all claims that occurred in each of the period, see also `claim_payment_no()`.}
#'   \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()`.}
#'   \item{payment_delay_list}{(compound) list; inter partial delays for all claims that occurred in each of the period, see also `claim_payment_delay()`.}
#'   \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()`.}
#'   \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()`.}
#' }
#' @seealso \enumerate{
#'   \item Claim occurrence: \code{\link{claim_frequency}}, \code{\link{claim_occurrence}}
#'   \item Claim size: \code{\link{claim_size}}
#'   \item Claim notification: \code{\link{claim_notification}}
#'   \item Claim closure: \code{\link{claim_closure}}
#'   \item Claim payment count: \code{\link{claim_payment_no}}
#'   \item Claim payment size (without inflation): \code{\link{claim_payment_size}}
#'   \item Claim payment time: \code{\link{claim_payment_delay}}, \code{\link{claim_payment_time}}
#'   \item Claim inflation: \code{\link{claim_payment_inflation}}
#' }
#' @examples
#' test_claims_object$frequency_vector
"test_claims_object"


#' Claims Dataset
#'
#' A dataset of 3,624 rows containing individual claims features.
#'
#' @format A data frame with 3,624 rows and 7 variables:
#' \describe{
#'   \item{claim_no}{claim number, which uniquely characterises each claim.}
#'   \item{occurrence_period}{integer; period of ocurrence of the claim.}
#'   \item{occurrence_time}{double; time of occurrence of the claim.}
#'   \item{claim_size}{size of the claim (in constant dollar values).}
#'   \item{notidel}{notification delay of the claim, i.e. time from occurrence to notification.}
#'   \item{setldel}{settlement delay of the claim, i.e. time from notification to settlement.}
#'   \item{no_payment}{number of partial payments required for the claim.}
#' }
#' @examples
#' # see a distribution of payment counts
#' table(test_claim_dataset$no_payment)
"test_claim_dataset"


#' Transactions Dataset
#'
#' A dataset of 18,983 records of partial payments associated with the 3,624
#' claims in `test_claim_dataset`.
#'
#' @format A data frame with 18,983 rows and 12 variables:
#' \describe{
#'   \item{claim_no}{claim number, which uniquely characterises each claim.}
#'   \item{pmt_no}{payment number, identification number of partial payments in respect of a particular `claim_no`.}
#'   \item{occurrence_period}{integer; period of ocurrence of the claim.}
#'   \item{occurrence_time}{double; time of occurrence of the claim.}
#'   \item{claim_size}{size of the claim (in constant dollar values).}
#'   \item{notidel}{notification delay of the claim, i.e. time from occurrence to notification.}
#'   \item{setldel}{settlement delay of the claim, i.e. time from notification to settlement.}
#'   \item{payment_time}{double; time of payment (on a continuous time scale).}
#'   \item{payment_period}{integer; time of payment (in calendar period).}
#'   \item{payment_size}{size of the payment in constant dollar terms.}
#'   \item{payment_inflated}{actual size of the payment (i.e. with inflation).}
#'   \item{payment_delay}{inter partial delay associated with the payment.}
#' }
"test_transaction_dataset"

Try the SynthETIC package in your browser

Any scripts or data that you put into this service are public.

SynthETIC documentation built on Sept. 3, 2023, 5:06 p.m.