setIndex-methods: Set up a time index for frequency or severity.

setIndexR Documentation

Set up a time index for frequency or severity.

Description

setIndex sets a time index to reflect inflation, underwriting cycle or seasonality.

Usage

setIndex(object, ...)

## S4 method for signature 'Index'
setIndex(object)

Arguments

object

Index Object

...

Additional function arguments

Examples

xindex <- new("Index", indexID = "IDX1", tabulate = FALSE, annualizedRate = 0.03)
xindex<-setIndex(xindex)
xindex@monthlyIndex

xindex <- new("Index")
setID(xindex)<-"IDX1"
setTabulate(xindex)<-TRUE
setAnnualizedRate(xindex)<-0.03
setYearlyIndex(xindex)<- c(1,1.05,1.2,0.95,1.3)
set.seed(123)
setSeasonality(xindex)<-rnorm(12,mean=1,sd=0.03)
xindex<-setIndex(xindex)
xindex@monthlyIndex

casact/cascsim documentation built on Nov. 12, 2022, 11:53 p.m.