get_data_families: get_data_families

View source: R/data_helpers.R

get_data_familiesR Documentation

get_data_families

Description

Get possible data types

Usage

get_data_families(
  model,
  drop_impossible = TRUE,
  drop_all_NA = TRUE,
  mapping_only = FALSE
)

Arguments

model

A causal_model. A model object generated by make_model.

drop_impossible

Logical. Whether to drop data that is impossible given model restrictions. Defaults to 'TRUE'.

drop_all_NA

Logical. Whether to drop row of all 'NA's. Defaults to 'TRUE'

mapping_only

Logical. Whether to return data mapping matrix only. Defaults to 'FALSE'.

Value

Returns indices and ambiguity matrix

Examples


CausalQueries:::get_data_families(model = make_model('X->Y'))
CausalQueries:::get_data_families(model = make_model('X->Y'),
                                  mapping_only = TRUE)
CausalQueries:::get_data_families(model = make_model('X-> M -> Y'))



macartan/gbiqq documentation built on April 28, 2024, 10:07 p.m.