getJagsData-comma-AnnualLossDevModelInput-dash-method: A method to create all the needed JAGS input common to both...

Description Arguments Details Value

Description

A method to create all the needed JAGS input common to both the standard model and the break model. Intended for internal use only.

Arguments

object

An object of type AnnualAggLossDevModelInput from which to collect the needed model input.

Details

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.inc

A square matrix with only the upper right containing non-missing values of the log of the incremental payments.

log.inc.index

A 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.length

The number of rows in log.inc.index.

smooth.tau.h.2.log

A 2-valued vector giving the smoothing parameters for the changing (in development time) variance and skewness.

h.same.as.last

A 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.

K

Dimension of log.inc.

H

Number of additional rows to estimate.

L.vec

Vector 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.p

Vector 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.

v

Matrix 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.

ar1

Zero if calendar year effect does not have an ar1 component; 1 if it does.

rho.prior

The 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.eta

Zero if exposure growth does not have an ar1 component; 1 if it does.

rho.eta.prior

The 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.skew

Zero tells the model to assume zero skewness, one to use the skewed t.

precision.for.skewness

The 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.skewness

The 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.skewness

The 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.mu

The 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.k

The 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.bounds

The 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.prior

The 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.ou

The 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.bounds

The 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.bounds

The 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.inf

A 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.inf

Matrix 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.inf

Matrix 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.

P

Single value. The position in stoch.log.inf.c corresponding to the final observed diagonal in log.inc.

stoch.log.inf.lower.bound

Matrix 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.bound

Matrix 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.ou

Single 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.ou

Single value. Possible non-stochastic auto-correlation coefficient for the Ornstein-Uhlenbeck process.

estimate.b.ou

Single value (zero or one). Should the stochastic rate of inflation have an estimated constant term or should fixed.b.ou be used?

fixed.b.ou

Single value. Possible non-stochastic constant term for stochastic inflation rate.

stoch.log.inf.known.mu

Single value. Added to the log stochastic inflation rate after the ar1 estimation process.

Value

A named list of the specific model elements. See Details for more information.


BALD documentation built on May 2, 2019, 6:51 a.m.