estimate_latent_count | R Documentation |
This function takes a DAG with edgeweights as input and computes the causal effects of all nodes on all direct and indirect children in the DAG. Alternatively see pcalg::causalEffect for pairwise computation.
estimate_latent_count(X1, X2, method = "auto")
X1 |
data matrix corresponding to the first condition |
X2 |
data matrix corresponding to the second condition |
method |
a string indicating the method used for estimating the number of latent variables |
estimated number of latent variables
Domagoj Ćevid
graph1 <- create_random_DAG(node_num = 100, prob = .1) graph2 <- resample_edge_weights(graph1, tp=0.15) X1 <- simulate_data(graph1, n=200, latent = 3) X2 <- simulate_data(graph2, n=200, latent = 3) estimate_latent_count(X1, X2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.