addExposures: Create an exposure data frame

Description Usage Arguments Value Examples

Description

This function takes a records file with unique policy identifiers in the column "key", exposure start dates in column "start" and exposure end dates in column "end". The output is a data frame with exposures and durations for time intervals.

Usage

1
2
addExposures(records, type = "PY", lower_year = NULL,
  upper_year = NULL)

Arguments

records

File containing a unique policy key with start and end dates.

type

Creates policy year rows for the default type = "PY". Creates policy month rows for type = "PM".

lower_year

A lower year for truncation to reduce calculation time and output size.

upper_year

An upper year for truncation to reduce calculation time and output size.

Value

A data frame with multiple rows for each unique policy key. Each row represents a policy interval.

Examples

1

expstudies documentation built on June 14, 2019, 5:03 p.m.