covariates_relativity {SynthETIC}R Documentation

Calculates Relativities

Description

Calculates the relativities (freq or sev) of a set of covariate values.

Usage

covariates_relativity(
  covariates_data,
  freq_sev = c("freq", "sev"),
  by_ids = FALSE
)

Arguments

covariates_data

a covariates_data object

freq_sev

one of freq or sev to calculate the frequency or severity relativity respectively.

by_ids

optional boolean to calculate reorder the result based off claim observations instead of observations in the covariates dataset. Defaults to FALSE.


[Package SynthETIC version 1.1.0 Index]