is gender an independent variable?
However, gender cannot be imposed or changed by investigators, so it is always an attribute independent variable, when men and women are compared in the study (i.e., when it is an independent variable). . Since the levels of the variable are two distinct categories, it is a nominal variable.