Discrete factor approximation for use in simultaneous equation models with both continuous and discrete endogenous variables.