Description Usage Arguments Examples
Claim simulation at line/type/status level
1 2 3 4 5 6 | claimSample(object, ...)
## S4 method for signature 'ClaimType'
claimSample(object, claimData = data.frame(),
startDate = as.Date("2012-01-01"),
evaluationDate = as.Date("2016-12-31"))
|
object |
ClaimType object |
... |
Additional parameters that may or may not be used. |
claimData |
claim data including existing claims for RBNER and claim reopenness analysis; |
startDate |
Date from which claim data is included in the analysis; |
evaluationDate |
Date of evaluation. |
1 2 3 4 5 6 7 8 9 10 | #run time is about 12s(>10s) and is commented out here to avoid long waiting time
#library(cascsim)
#data(claimdata)
##IBNR simulation
#claimobj <- new("ClaimType", line="Auto",claimType="N",iRBNER=FALSE,iROPEN=FALSE,
#iIBNR=TRUE,iUPR=FALSE,
#IBNRfreqIndex=new("Index",startDate=as.Date("2016-01-01"),
#monthlyIndex=rep(30,12)),iCopula=TRUE)
#ibnrdata <- claimSample(claimobj,claimdata)
#ibnrdata
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.