setSeasonality-methods: Set seasonality on a monthly basis.

Description Usage Arguments Examples

Description

setSeasonality<- sets monthly multiplier to reflect seasonal impact.

Usage

1
2
3
4
setSeasonality(this, ...) <- value

## S4 replacement method for signature 'Index,vector'
setSeasonality(this) <- value

Arguments

this

Index Object

...

Additional function arguments

value

Numeric Vector (default:rep(1,12))

Examples

1
2
3
4
5
6
7
8
9
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

cascsim documentation built on Jan. 13, 2020, 5:07 p.m.