
Explanation:
When using dummy variables to represent categorical variables in regression analysis, the general rule is:
Number of dummy variables = Number of categories - 1
This is because one category serves as the reference (baseline) category, and the other dummy variables represent the differences from this baseline.
Given:
Therefore, 3 dummy variables are needed to distinguish among four different categories of companies. The sample size of 20 companies is irrelevant to this calculation.
No comments yet.