Theory and methods of causality analysis in sociology