Question

Assume you are building an interaction model with two qualitative variable. The first variables has 3...

Assume you are building an interaction model with two qualitative variable. The first variables has 3 levels. The second variable has 4 level. In total how many dummy variables do you need and how many interaction terms do you need?

Options:

a. 7 dummy variables and 25 interaction terms.

b. 6 dummy variables and 12 interaction terms.

C. 5 dummy variables and 6 interaction terms.

D. 5 dummy variables and 25 interaction terms.

Homework Answers

Answer #1

Since there are 3 levels for the first variable, we will need 2 dummy variables, since one level will be considered the baseline. Also, since there are 4 levels for the second variable, we will need 3 dummy variables, since one level will be considered the baseline. Hence, total no. of dummy variables = 5.
The interaction terms involving the levels of the two variables are: (level 1 of first variable, level 2 of second variable), (level 1 of first variable, level 3 of second variable), (level 1 of first variable, level 4 of second variable), (level 2 of first variable, level 3 of second variable), (level 2 of first variable, level 4 of second variable) and (level 3 of first variable, level 4 of second variable).

Hence, 5 dummy variables and 6 interaction terms.

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
1. Suppose that you have two categorical variables. The first variables has 3 levels and the...
1. Suppose that you have two categorical variables. The first variables has 3 levels and the second variable has 5 levels. Determine the degrees of freedom for the chi-square test for independence for these variables.... 2. Suppose that you have two categorical variables. The first variables has 4 levels and the second variable has 5 levels. Determine the number of cells for the chi-square test for independence for these variables....
1.One-way ANOVA can be applied to: a)Regression model with several dummy variables (created for a qualitative...
1.One-way ANOVA can be applied to: a)Regression model with several dummy variables (created for a qualitative independent variable) to test the overall usefulness of the model b)Regression model with several quantitative independent variables to test the overall usefulness of the model c)Both of the above D) none of the above 2. You need to decide whether you should invest in a particular stock.  You would like to invest if the price is likely to rise in the long run.  Assuming the past...
i) Show how you would create two dummy variables, d1 and d2, for when a person...
i) Show how you would create two dummy variables, d1 and d2, for when a person started smoking, if we wanted never smokers to be the referent level. D1={ 1; if smoking as an adult, 0; if otherwise D2={ 1; if smoking as a child, 0; if otherwise ii) Using the dummy variables from part (i), suppose you decide to do the analysis using a multiple regression model:          Y  =  b0 + b1d1 + b2d2 + b3age + b4(d1)(age) + b5(d2)(age) +...
In a certain probability problem, we have 11 variables: A, B1, B2, ..., B10. Variable A...
In a certain probability problem, we have 11 variables: A, B1, B2, ..., B10. Variable A has 6 values. Each of variables B1, ..., B10 have 5 possible values. Each Bi is conditionally indepedent of all other 9 Bjvariables (with j != i) given A. Based on these facts: Part a: How many numbers do you need to store in the joint distribution table of these 11 variables? Part b: What is the most space-efficient way (in terms of how...
Then you will do a paired t-test on the two # of letters variables using a...
Then you will do a paired t-test on the two # of letters variables using a level of significance. What is the test-statistic and p-value? # of letters in first name #letters in last name 5 6 5 5 7 7 4 6 7 7 6 5 7 9 6 9 4 12 5 7 4 5 7 5
Suppose a null model is applied to describe the relation of two random variables, you may...
Suppose a null model is applied to describe the relation of two random variables, you may add one more variable into the model as a predictor, and that would be the second model. a. Draw two scatter plots to illustrate the fitting of the two models, which can show simple regression has a better fitting. b. Tell how the R^2 changes and how adjusted R^2 change. c. Write an estimator of the coefficient of the null model.
Given below are seven observations collected in a regression study on two variables, X (independent variable)...
Given below are seven observations collected in a regression study on two variables, X (independent variable) and Y (dependent variable). PLEASE TYPE OUT. I HAVE A VERY DIFFICULT TIME READING HAND WRITTEN RESPONSES. THANK YOU SO MUCH! X Y 2 12 3 9 6 8 7 7 8 6 7 5 9 2 a. Develop the least squares estimated regression equation. b. State the hypotheses to test for the significance of the regression line. c. Perform an F test to...
Given here are the data from a dependent variable and two independent variables. The second independent...
Given here are the data from a dependent variable and two independent variables. The second independent variable is an indicator variable with several categories. Hence, this variable is represented by x2, x3, and x4. How many categories are needed in total for this independent variable? Use a computer to perform a multiple regression analysis on this data to predict y from the x values. Discuss the output and pay particular attention to the dummy variables. y x1 x2 x3 x4...
A two-way analysis of variance experiment with no interaction is conducted. Factor A has three levels...
A two-way analysis of variance experiment with no interaction is conducted. Factor A has three levels (columns) and Factor B has seven levels (rows). The results include the following sum of squares terms: SST = 346.9 SSA = 196.3 SSE = 79.0 a. Construct an ANOVA table. (Round intermediate calculations to at least 4 decimal places. Round "SS" to 2 decimal places, "MS" to 4 decimal places, "F" to 3 decimal places.) Source SS df MS F p-value Rows Columns...
Year Quarter Sales ($000) 2015 1 $400 2015 2 2,000 2015 3 3,500 2015 4 260...
Year Quarter Sales ($000) 2015 1 $400 2015 2 2,000 2015 3 3,500 2015 4 260 2016 1 740 2016 2 2,720 2016 3 4,900 2016 4 520 2017 1 1,500 2017 2 3,100 2017 3 6,520 2017 4 960 2018 1 1,840 2018 2 4,040 2018 3 7,680 2018 4 1,640 2019 1 3,520 2019 2 5,640 2019 3 8,900 2019 4 3,620 Problem 2 House Depot’s quarterly sales of a lawn, landscaping, and gardening items – like lawnmowers,...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT