covariates_relativity: Calculates Relativities

View source: R/features_02a_claim_covariates.R

covariates_relativityR 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.


SynthETIC documentation built on May 29, 2024, 8:47 a.m.