150 likes | 323 Views
AAEC 4302 ADVANCED STATISTICAL METHODS IN AGRICULTURAL RESEARCH. Chapter 7.3 Dummy Variables. Use of Dummy Variables. is the skull length (mm) of the i th mouse: X 1i sex: male or female (two categories), X 2i specie (three categories), and X 3 age. Use of Dummy Variables.
E N D
AAEC 4302ADVANCED STATISTICAL METHODS IN AGRICULTURAL RESEARCH Chapter 7.3 Dummy Variables
Use of Dummy Variables • is the skull length (mm) of the ith mouse: • X1i sex: male or female (two categories), • X2i specie (three categories), and • X3 age.
Use of Dummy Variables Model to estimate: Estimated Model:
Use of Dummy Variables • For a male mouse of the first specie: 1 1 0 D11: 1 if sex = Male, 0 otherwise D21: 1 if species = 1, 0 otherwise D22: 1 if species = 2, 0 otherwise
Use of Dummy Variables • For a male mouse of the second specie: 1 0 1 D11: 1 if sex = Male, 0 otherwise D21: 1 if species = 1, 0 otherwise D22: 1 if species = 2, 0 otherwise
Use of Dummy Variables • For a male mouse of the third specie: 1 0 0 D11: 1 if sex = Male, 0 otherwise D21: 1 if species = 1, 0 otherwise D22: 1 if species = 2, 0 otherwise
Use of Dummy Variables • For a female mouse of the first specie: 0 1 0 D11: 1 if sex = Male, 0 otherwise D21: 1 if species = 1, 0 otherwise D22: 1 if species = 2, 0 otherwise
Use of Dummy Variables • For a female mouse of the second specie: 0 0 1 D11: 1 if sex = Male, 0 otherwise D21: 1 if species = 1, 0 otherwise D22: 1 if species = 2, 0 otherwise
Use of Dummy Variables • For a female mouse of the third specie: 0 0 0 D11: 1 if sex = Male, 0 otherwise D21: 1 if species = 1, 0 otherwise D22: 1 if species = 2, 0 otherwise
Use of Dummy Variables • measures the skull length for a female mouse of specie 3 at birth, i.e. age = 0 • : The skull length for a female mouse of specie 3 at birth is 33 mm.
Use of Dummy Variables • measures the difference in skull length (for any age) between male and female for any specie • : means that regardless of age, a male mouse will have a skull length 3.05 mm larger than a female mouse
Use of Dummy Variables • measures the difference in skull length (for male mouse of any age) between species one and three • : means that a mouse of species 1 will have a skull length 4.9 mm smaller than a mouse of species 3, regardless of sex and age.
Use of Dummy Variables • measures the difference in skull length (male or female mice of any age) between species two and three • : means that a mouse of species 2 will have a skull length 0.22 mm smaller than a mouse of species 3, regardless of sex and age.
Use of Dummy Variables • measures the difference in skull length (for male or female mice of any age) between species one and two • (-4.9) – (-0.22) = -4.68 means the skull length for species 1 is 4.68 mm shorter than for species 2, regardless of age and sex.
Use of Dummy Variables • Dummy variables in models are often called “intercept shifters”