check_relativity {SynthETIC}R 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.


[Package SynthETIC version 1.1.0 Index]