check_relativity: Function to check the input Covariate Relativities

View source: R/features_02a_claim_covariates.R

check_relativityR Documentation

Function to check the input Covariate Relativities

Description

Performs assertions on inputted relativities, will raise an error if any checks fail. Currently checks on the: necessary column names used in dataframe, required factors and levels based on inputted factors, inputted relativities being non-negative numbers.

Usage

check_relativity(factors, relativity)

Arguments

factors

named list of vectors, containing the name of the covariates and associated factors in vector form.

relativity

relativity dataframe as defined in relativity_template.


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