Learn R Programming

cascsim (version 0.4)

setAnnualizedRate<-: Set the annualized level rate to construct the index. Only used when tabulate == FALSE.

Description

Set the annualized level rate to construct the index. Only used when tabulate == FALSE.

Usage

setAnnualizedRate(this, ...) <- value

# S4 method for Index,numeric setAnnualizedRate(this) <- value

Arguments

this

Index Object

...

Additional function arguments

value

Numeric Value (default:0.02)

Examples

Run this code
# NOT RUN {
xindex <- new("Index")
setID(xindex)<-"IDX1"
setTabulate(xindex)<-FALSE
setAnnualizedRate(xindex)<-0.03
xindex<-setIndex(xindex)
xindex@monthlyIndex
# }

Run the code above in your browser using DataLab