covariates_data: Construction of a 'covariates_data' Object

View source: R/features_02a_claim_covariates.R

covariates_dataR Documentation

Construction of a covariates_data Object

Description

Constructs a covariates_data object which stores the dataset of known covariate levels of each factor.

Usage

covariates_data(covariates, data, covariates_id = NULL)

Arguments

covariates

a covariates object

data

a dataset of covariate values, with columns equal to each of the covariate factors and rows related to individual claim observations.

covariates_id

optional list of list of ids, in the same format as a claim_size output. Also see to_SynthETIC. Defaults to NULL.

Value

Returns a covariates_data object.


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