Contents
Can the dependent variable be binary?
A binary dependent variable is one that can only take on values 0 or 1 at each observation; typically it’s a coding of something qualitative (e.g. married versus not married, approved for a loan versus not approved).
What should be used when the dependent variable is binary?
All Answers (6) The obvious answer is: logistic regression. For binary logistic regression, the DV is binary, and the IVs can be numerical or categorical (ordinal or nominal) or a combination of these. If your sample size is large, CHAID analysis could add surprising insights into your data.
How are binary independent variables used in regression?
Binary independent variables are also known as indicator variables and analyst frequently use them in linear regression. Typically, the 1s and 0s of an indicator variable represent the presence or absence of a characteristic.
Why do you use codes 1 and 2 in linear regression?
The codes 1 and 2 are assigned to each gender simply to represent which distinct place each category occupies in the variable sex. However, linear regression assumes that the numerical amounts in all independent, or explanatory, variables are meaningful data points.
How to create sex variable in linear regression?
To begin, select Transform and Recode into Different Variables. Find our variable sex in the variable list on the left and move it to the Numeric Variable -> Output Variable text box. Next, under the Output Variable header on the left, enter in the name and label for the new sex variable we’re creating.
How are dummy variables coded in simple linear regression?
Each dummy variable represents one category of the explanatory variable and is coded with 1 if the case falls in that category and with 0 if not. For example, in the dummy variable for Female, all cases in which the respondent is female are coded as 1 and all other cases, in which the respondent is Male, are coded as 0.