A method to create all the needed JAGS input common to both the standard model and the break model. Intended for internal use only.
An object of type AnnualAggLossDevModelInput from which to collect the needed model input.
A named list of the specific model elements. See Details for more information.
There are currenly two types of AnnualAggLossDevModels (break and standard). These models have many data elements in common and the code to create these common elements is placed in this method.
The derived classes StandardAnnualAggLossDevModelInput and BreakAnnualAggLossDevModelInput should call this method via NextMethod() and then should append any needed data.
The returned value is a list containing the following elements with the following meanings:
log.incA square matrix with only the upper right containing non-missing values of the log of the incremental payments.
log.inc.indexA 2-column matrix. Each row corresponds to a non-missing value in log.inc. The first column gives the row of the non-missing value, the second the column.
log.inc.index.lengthThe number of rows in log.inc.index.
smooth.tau.h.2.logA 2-valued vector giving the smoothing parameters for the changing (in development time) variance and skewness.
h.same.as.lastA vector of 1's and 0's equal in length to the columns in log.inc. A value of one means the variance and skewness in the corresponding column should be the same as in the previous column.
KDimension of log.inc.
HNumber of additional rows to estimate.
L.vecVector equal in length to the number of total rows (observed plus forecast). Each value is the column number of the final non-zero incremental payment.
delta.pVector equal in length to the number of total rows (observed plus forecast). First column is (on the log scale) the mean of the final decay rate. Second is standard deviation.
vMatrix with number of rows equal to total rows (observed plus forecast) and number of columns equal to total development years (observed plus forecast) minus the number of observed development years.
ar1Zero if calendar year effect does not have an ar1 component; 1 if it does.
rho.priorThe parameters for the beta prior of the autoregressive parameter in calendar year effect. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
ar1.etaZero if exposure growth does not have an ar1 component; 1 if it does.
rho.eta.priorThe parameters for the beta prior of the autoregressive parameter in exposure growth. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
allow.for.skewZero tells the model to assume zero skewness, one to use the skewed \(t\).
precision.for.skewnessThe prior precision for the skewness parameter. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
df.for.skewnessThe prior df for the skewness parameter. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
bounds.for.skewnessThe the skewness parameter is bounted to prevent chains from getting stuck. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
precision.for.eta.muThe prior precision for eta.mu. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
df.kThe parameter for the chi-sqr prior on the degrees of freedom. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
df.boundsThe lower and upper bounds on the degrees of freedom. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
a.ou.priorThe parameters for the beta prior of the autoregressive parameter for the stochastic inflation. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
precision.for.b.ouThe prior precision for the intercept in the stochastic inflation ar1 process. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
sigma.eta.boundsThe lower and upper bounds on the standard deviation of the exposure year growth rate. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
sigma.kappa.boundsThe lower and upper bounds on the standard deviation of the calendar year growth rate. Stored in R rather than in the model so that modifications are accurately reflected in charts for the prior.
stoch.log.infA vector giving the log inflation rate; missing future values are coded as NA.
w.stoch.pct.inf.Matrix with number of rows equal to total (observed and forecast) exposure years and number of columns equal to total development years. The portion of dollars inflating.
non.stoch.log.infMatrix with number of rows equal to total (observed and forecast) exposure years and number of columns equal total development years. Non-stochastic inflation rate. Cannot be NA.
w.non.stoch.pct.infMatrix with number of rows equal to total (observed and forecast) exposure years and number of columns equal to total development years. The percent of dollars inflating.
PSingle value. The position in stoch.log.inf.c corresponding to the final observed diagonal in log.inc.
stoch.log.inf.lower.boundMatrix with number of rows equal to total (observed and forecast) exposure years and number of columns equal total development years. Floor for inflation rate.
stoch.log.inf.upper.boundMatrix with number of rows equal to total (observed and forecast) exposure years and number of columns equal total development years. Ceiling for inflation rate.
estimate.a.ouSingle value (zero or one). Should the auto correlation coefficient for the Ornstein-Uhlenbeck process be estimated or should fixed.a.ou be used?
fixed.a.ouSingle value. Possible non-stochastic auto-correlation coefficient for the Ornstein-Uhlenbeck process.
estimate.b.ouSingle value (zero or one). Should the stochastic rate of inflation have an estimated constant term or should fixed.b.ou be used?
fixed.b.ouSingle value. Possible non-stochastic constant term for stochastic inflation rate.
stoch.log.inf.known.muSingle value. Added to the log stochastic inflation rate after the ar1 estimation process.