Description Usage Arguments Value Author(s) See Also Examples
View source: R/get.expression.R
This function converts an object of class probability
returned by aux.effect
, causal.effect
, generalize
, meta.transport
, recover
or transport
with expr = FALSE
into a string which represents the probability distribution. Currently only LaTeX syntax is available.
1 | get.expression(x, primes = FALSE)
|
x |
An object of class |
primes |
A logical value. If |
A character string that describes the resulting distribution in LaTeX syntax.
Santtu Tikka
aux.effect
, causal.effect
, generalize
, meta.transport
, recover
, transport
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(igraph)
# simplify = FALSE to allow multiple edges
g <- graph.formula(X -+ Y, Z -+ X, Z -+ Y , X -+ Z, Z -+ X, simplify = FALSE)
# Here the bidirected edge between X and Z is set to be unobserved in graph g
# This is denoted by giving them a description attribute with the value "U"
# The edges in question are the fourth and the fifth edge
g <- set.edge.attribute(graph = g, name = "description", index = c(4,5), value = "U")
x <- causal.effect(y = "Y", x = "X", z = NULL, G = g, expr = FALSE)
get.expression(x, primes = FALSE)
get.expression(x, primes = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.