Learn R Programming

CausalQueries (version 1.1.0)

get_data_families: get_data_families

Description

Get possible data types

Usage

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

Value

Returns indices and ambiguity matrix

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`.

Examples

Run this code
# \donttest{
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'))

# }

Run the code above in your browser using DataLab