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


[Package SynthETIC version 1.1.0 Index]