setXname-methods: Set additional explanatory variable names.

setXname<-R Documentation

Set additional explanatory variable names.

Description

setXname<- sets explanatory variable names in addition to "Intercept","DevelopmentYear","IncurredLoss", and "OSRatio". Additional variable names must match exactly with claim data. The xname vector is only used when ibnerfModel == TRUE.

Usage

setXname(this, ...) <- value

## S4 replacement method for signature 'DevFac,vector'
setXname(this) <- value

Arguments

this

DevFac Object

...

Additional function arguments

value

Character Vector

Examples

xIBNERFactor <- new("DevFac")
setID(xIBNERFactor)<-"IF1"
setFacModel(xIBNERFactor)<-TRUE
setFun(xIBNERFactor)<-"identity"
setXname(xIBNERFactor)<- c("x1","x2","x3")
setParas(xIBNERFactor)<-c(0.6,-0.2,0.01,-0.3,0.02,0.03,0.01,0.02)
xIBNERFactor<-setDevFac(xIBNERFactor)
xIBNERFactor

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