Question

Assume one of the explanatory variable (named X1) in your logistic regression is a categorical variable...

Assume one of the explanatory variable (named X1) in your logistic regression is a categorical variable with the following levels: low, average and high, and another explanatory variable (named X2) is also categorical with the following levels: Sydney, Melbourne, Hobart and Brisbane. Explain how you will use them in developing your logistic regression model. How many coefficients you will have in your final model?

Homework Answers

Answer #1

Solution :

The variables X1 is a categorical variable and can be encoded using two numbers and similarly X2 can be encoded using 1 number.

Logistic regression model :

It is used to describe data and to explain the relationship betweem one dependent binary variable and one or more nominal, ordinal, interval or ratio- level independent variable.

There fore then they can be two coefficients in the logistic regression model corresponding to two variables.

For X1, there are three categories so we would need (3 - 1) i.e. 2 variables.

For X2, there are four categories so we would need (4 - 1) i.e. 3 variables.

Hence,

Number of coefficients in final model = 2 + 3 = 5


Let me know in the comment section if anything is not clear. I will reply ASAP!

If you like the answer, please give a thumbs-up. This will be quite encouraging for me.Thank-you!

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Assume one of the explanatory variable (named X1) in your logistic regression is a categorical variable...
Assume one of the explanatory variable (named X1) in your logistic regression is a categorical variable with the following levels: low, average and high, and another explanatory variable (named X2) is also categorical with the following levels: Sydney, Melbourne, Hobart and Brisbane. Explain how you will use them in developing your logistic regression model. How many coefficients you will have in your final model?
A linear regression of a variable Y against the explanatory variables X1 and X2 produced the...
A linear regression of a variable Y against the explanatory variables X1 and X2 produced the following estimation model: Y = 1615.495 + 9.957 X1 + 0.081 X2 + e (527.96) (6.32) (0.024) The number in parentheses are the standard errors of each coefficients i. State the null and alternative hypothesis for the coefficients Select the appropriate test, compute the test statistic based on the information above, and test the null hypothesis for each coefficient by using a level of...
Consider a regression of y on two explanatory variables, x1 and x2, which are potentially correlated...
Consider a regression of y on two explanatory variables, x1 and x2, which are potentially correlated (though not perfectly). Say that x1 can take on any value between 1 and 100. A researcher draws a random sample of observations, with information on y, x1 and x2. She runs a regression on this sample, which we refer to as regression A. She then takes the subset of the data where x1 is restricted to only take values between 1 and 50,...
1.Consider a regression of y on two explanatory variables, x1 and x2, which are potentially correlated...
1.Consider a regression of y on two explanatory variables, x1 and x2, which are potentially correlated (though not perfectly). Say that x1 can take on any value between 1 and 100. A researcher draws a random sample of observations, with information on y, x1 and x2. She runs a regression on this sample, which we refer to as regression A. She then takes the subset of the data where x1 is restricted to only take values between 1 and 50,...
Say your supervisor performs a regression and later find that one of your independent variables (X1)...
Say your supervisor performs a regression and later find that one of your independent variables (X1) is correlated with another variable that you did not include the regression (X2), and this other variable might better explain the variance in the dependent variable (Y). Explain what is likely to happen if your supervisor conducts another regression with both of these independent variables included in the model.
Thalassemia is detected based on two factors: x1 and x2. The following table contains x1 and...
Thalassemia is detected based on two factors: x1 and x2. The following table contains x1 and x2 factors of 10 patients, and whether they were diagnosed with thalassemia or not. x1 x2 Thalassemia 5 10 Negative 6 30 Negative 10 45 Negative 11 57 Positive 15 61 Negative 31 75 Positive 25 71 Negative 20 78 Positive 16 87 Positive 17 99 Positive You decided to use logistic regression-based classification to determine if a new patient is thalassemia-positive or thalassemia-negative....
Use the following linear regression equation to answer the questions. x1 = 1.1 + 3.0x2 –...
Use the following linear regression equation to answer the questions. x1 = 1.1 + 3.0x2 – 8.4x3 + 2.3x4 (a) Which variable is the response variable? x3 x1      x2 x4 Which variables are the explanatory variables? (Select all that apply.) x1 x2 x3 x4 (b) Which number is the constant term? List the coefficients with their corresponding explanatory variables. constant = x2 coefficient= x3 coefficient= x4 coefficient= (c) If x2 = 4, x3 = 10, and x4 = 6, what...
Use the following linear regression equation to answer the questions. x1 = 1.5 + 3.5x2 –...
Use the following linear regression equation to answer the questions. x1 = 1.5 + 3.5x2 – 8.2x3 + 2.1x4 (a) Which variable is the response variable? A. x3 B. x1     C. x2 D. x4 (b) Which variables are the explanatory variables? (Select all that apply.) A. x4 B. x1 C. x3 D. x2 (c) Which number is the constant term? List the coefficients with their corresponding explanatory variables. constant ____________ x2 coefficient_________ x3 coefficient_________ x4 coefficient_________ (d) If x2 =...
6.    Consider the following sample regression results:             Y hat = 15.4 +    2.20 X1   +...
6.    Consider the following sample regression results:             Y hat = 15.4 +    2.20 X1   + 48.14 X2                 R2 = .355                      (6.14)     (.42)          (5.21)            n = 27 The numbers in the parentheses are the estimated standard errors of the sample regression coefficients. 6. (continued) a.    Construct a 95% confidence interval for b1. b.    Is there evidence of a linear relationship between X2   and Y at the 5% level of significance? c.    If you were to use a global test...
•List three variables (X1, X2, X3) you’d include in a Multiple Regression Model in order to...
•List three variables (X1, X2, X3) you’d include in a Multiple Regression Model in order to better predict an outcome (Y) variable. For example, you might list three variables that could be related to how long a person will live (Y). Or you might list three variables that contribute to a successful restaurant. Your Regression Model should have three variables that will act as “predictors” (X1, X2, X3) of a “criterion” (Y’). Note that the outcome or criterion variable (e.g....