View source: R/idar_estimate.R
estimate | R Documentation |
Estimate the causal effect based on the DAG model
estimate( cause, effect, dag, data, categorical = NULL, ordinal = NULL, weights = NULL )
cause |
a string with the name of the node to check if its causal effect on 'effect' is identifiable |
effect |
a string with the name of the node to check if the causal effect of 'cause' on this node is identifiable |
dag |
a string with the DAG |
data |
a data.frame with the data |
categorical |
a string vector with the name of the categorical endogenous variables (see lavaan documentation for 'ordered' variables) |
ordinal |
a string vector with the name of the ordinal discrete endogenous variables (see lavaan documentation for 'ordered' variables) |
weights |
string with the name of the variable in the data frame with the sample weights. Optional. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.