

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Statistics 3115/ Handout 12
So far we have utilized quantitative independent variables in regression models. Sometimes qualitative independent variables are used. Examples of qualitative variables are: gender of respondent (female, male), job location of an employee (plant, o¢ ce, Öeld), season of year (winter,spring, summer, autumn) and type of location for a restaurant (shopping mall, street, high- way).
Representation of Qualitative Variables. A qualitative variable can be represented by means of 0 ; 1 indicator vari- ables. A 0 ; 1 indicator (dummy) variable is a variable that can have only two possible values: 0 or 1.
A qualitative variable with k classes or categories is represented by k 1 indicator variables.
Examples:
1 if female 0 otherwise.
Hence, the numerical values of X 1 are associated with the two classes of the
variable gender as follows:
Class X 1 Male (reference class) 0 Female 1
The Örst class is called the reference class since all the indicator variables
identifying this class are set to be equal to 0.
1 if shopping mall location 0 otherwise
X 3 =
1 if street location 0 otherwise.
Hence, the numerical values of X 2 and X 3 are associated with the three locations as follows:
Class X 2 X 3 Highway (reference class) 0 0 Shopping mall 1 0 Street 0 1