vector.2.triangle: Organise vector as matrix with triangle structure

Description Usage Arguments Value Author(s) Examples

View source: R/apc_data.R

Description

Organise vector as matrix with triangle structure. Useful for reserving data. It may be easy to input data as vector. This function organises data in "CL"-format, which is a cohort-age (policy year-development) year matrix

Usage

1

Arguments

v

vector. Length k*(k+1)/2

k

integer. Dimension

Value

The value is a list in apc.data.list format.

m

matrix with "CL" format Dimension kxk. Upper left triangle filled by v, row by row. Remaining entries NA

Author(s)

Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 7 Feb 2015

Examples

1
2
3
#########################

vector.2.triangle(1:10,4)

apc documentation built on May 19, 2017, 12:14 p.m.

Search within the apc package
Search all R packages, documentation and source code