loglinear_analysis function

Loglinear analysis