Learn R Programming

efflog (version 1.0)

exp_par_mult: Fitting causal log-linear model

Description

exp_par_mult calculates the causal parameters for a causal log-linear model with the multiplicative interaction

Usage

exp_par_mult(table)

Arguments

table
it is a table containing the frequency distribution of the variables

Value

References

Gheno Gloria (2015), The causal analysis in the loglinear model

Examples

Run this code
tableXZY<-data.frame(expand.grid( 
 X=factor(c("0","1"),levels=c("0","1")), 
  Z=factor(c("0","1"),levels=c("0","1")), 
 Y=factor(c("0","1"),levels=c("0","1"))), 
 count=c(57,47,21,39,31,40,20,95))
exp_par_mult(tableXZY)

Run the code above in your browser using DataLab