calcPar function

Endogenous switching regression