• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 1 pages
Summary

Summary Research Methods - Data Analysis I

Document preview thumbnail
Preview 1 out of 1 pages

Summary of 1 pages for the course Research Methods In Psychology at UT

Content preview

RM | Unit 220 - Dummy coding with more than two categories


Book: Analysing data using linear models
Chapter 6: 6.6, 6.7


Chapter 6.6: Dummy coding for more than two groups
Take for instance a variable Country, where in your data set, there are three different values for this
variable, for instance, Norway, Sweden and Finland, or Zimbabwe, Congo and South-Africa. Let’s call
these countries A, B and C. We can code this Country variable with three categories into two dummy
variables in the following way. First, we create a variable countryA. This is a dummy variable, or
indicator variable, that indicates whether a person comes from country A or not. Those persons that do are
coded 1, and those that do not are coded 0. Next, we create a dummy variable countryB that indicates
whether or not a person comes from country B. Again, persons that do are coded 1, and those that do not
are coded 0.
Note that we have now for every value of Country (A, B, or C) a unique combination of the
variables countryA and countryB. All persons from country A have a 1 for countryA and a 0 for
countryB; all those from country B have a 0 for countryA and a 1 for countryB, and all those from
country C have a 0 for countryA and a 0 for countryB. Therefore a third dummy variable countryC 197 is
not necessary (i.e., is redundant): the two dummy variables give us all the country information we need.


Chapter 6.7: Analysing categorical predictor variables in R
Check chapter in the book

Document information

Study
Uploaded on
January 21, 2021
Number of pages
1
Written in
2020/2021
Type
Summary
$4.04

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
47
Followers
25
Items
46
Last sold
5 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions