In following example, how to use several combination of X, Y and Z in each model?

The dataframe looks similar to the following sequence, where Pa = 0/1 and X1 to Zn = several ranges of continuous variables.

Pa ~ X1 +X2+X3+X4+ …..Xn + Y1+Y2+Y3+Y4…..Yn + Z1+Z2+Z3+Z4…….Zn

Model sequences are following:

Model1: Pa~ X1 + Y1+ Z1

Model3: Pa~ X2 + Y1+ Z1

Model4: Pa~ X3 + Y1+ Z1

Model5: Pa~ X4 + Y1+ Z1

.

.

.

Model n: Pa~ Xn + Yn+ Zn

Similar questions and discussions