parse_effect {causaloptim}R Documentation

Parse text that defines a causal effect

Description

Parse text that defines a causal effect

Usage

parse_effect(text)

Arguments

text

Character string

Value

A nested list that contains the following components:

vars

For each element of the causal query, this indicates potential outcomes as names of the list elements, the variables that they depend on, and the values that any variables are being fixed to.

oper

The vector of operators (addition or subtraction) that combine the terms of the causal query.

values

The values that the potential outcomes are set to in the query (0 or 1).

pcheck

List of logicals for each element of the query that are TRUE if the element is a potential outcome and FALSE if it is an observational quantity.


[Package causaloptim version 0.8.2 Index]