Learn R Programming

sstModel (version 1.0.0)

healthRisk: Constructing a HealthRisk

Description

healthRisk is the constructor for the S3 class healthRisk. It allows to build for health insurance risks parameters.

Usage

healthRisk(corr.mat)

Arguments

corr.mat

matrix of numeric values. It must be a valid correlation matrix. This matrix must have names, i.e. attributes colnames and rownames indicating the names of the corresponding health insurance risk factors.

Value

an S3 object, instance of the class healthRisk.

See Also

summary.healthRisk, print.healthRisk, compute.healthRisk.

Examples

Run this code
# NOT RUN {
# Creating new healthRisks.

corr.mat <- diag(rep(1, 2))
colnames(corr.mat) <- c("invalidity", "longetivity")
rownames(corr.mat) <- colnames(corr.mat)

healthRisk1 <- healthRisk(corr.mat  = corr.mat)

# }

Run the code above in your browser using DataLab