Description Usage Arguments Examples
setIndex
sets a time index to reflect inflation, underwriting cycle or seasonality.
1 2 3 4 |
object |
Index Object |
... |
Additional function arguments |
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.