estimate: Estimate DAG model

View source: R/idar_estimate.R

estimateR Documentation

Estimate DAG model

Description

Estimate the causal effect based on the DAG model

Usage

estimate(
  cause,
  effect,
  dag,
  data,
  categorical = NULL,
  ordinal = NULL,
  weights = NULL
)

Arguments

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.


DiogoFerrari/idar documentation built on May 27, 2022, 10:07 p.m.