Causal analysis of data from surveys: Goodman's procedure