Incorporating item response theories in causal models