UPI Study › Courses › Marketing Research › Free lessons › Lesson 8.6 Free lesson
Encoding and Scoring Data in Marketing Research
Marketing Research · Chapter 8: Secondary Data, Syndicated Sources, and Data PreparationSection 8.6 · lesson 60 of 10111 min · free to watch
Lesson complete
Earn the 3 college credits for Marketing Research
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: How to Respecify and Transform Variables in Excel →← Collecting and Preparing Data in Marketing ResearchNext lesson: How to Respecify and Transform Variables in Excel →
In this lesson
Turning survey answers into numbers with a codebook and scoring rules.
- Assign numeric codes to answers and write a codebook
- Declare a missing-value code so it is never averaged by accident
- Reverse-score a negatively worded Likert item and compute a summed scale score
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (1,534 words). Read along, or search it.
Opening Example
A Computer Cannot Add Agree
A computer cannot add up the word "agree." It can add a 4. Between a shopper ticking a box, and Grace running her first average, there is a quiet translation step. And it hides one nasty trap. A single question, worded in the opposite direction, can flip an entire survey result upside down, if nobody notices.
In this lesson, you will assign numeric codes to answers, and write a codebook. You will declare a missing-value code, so it is never averaged by accident. And you will reverse-score a negatively worded Likert item, and compute a summed scale score.
Coding Basics
Pre-Coded and After-the-Fact Coding
First: why answers become numbers. Statistical software, and spreadsheets, work best with numbers. So every answer needs a number.
Coding, also called encoding, means assigning a number to each allowed answer. So female becomes 1, and male becomes 2. Or agree becomes 4. A yes might be one, and a no might be two.
There are two ways to do it. Closed questions can be pre-coded. The questionnaire already prints the code beside each choice. That saves effort, and avoids slips. Open-ended answers are different. They must be coded after the fact, by reading them, and sorting them into categories. That is the thematic method, from lesson 5.1.
Good Coding Habits
Exclusive, Exhaustive and Consistent
Good coding follows three habits. The first: categories must be mutually exclusive, and exhaustive. Mutually exclusive means an answer fits one code only. Exhaustive means every answer fits some code. If needed, you add an other category, so no answer is left without a home.
The second habit: codes must be consistent. Yes is always 1, and no is always 2. Never one in one question, and two in the next. Flip them halfway through, and the analyst will read half the file backward.
Nominal Codes
A Code Is Just a Name Tag
The third habit: the code carries no hidden promise. A code of two, for male, does not mean twice as much as a code of one, for female. For a nominal variable, from lesson 5.5, the number is just a name tag. So an average of gender codes is meaningless. Ask a spreadsheet for it, and it will happily give you a number. But that number describes no one. An average of one and a half is not a person. It is just two labels, blended into nonsense.
Here is a fun fact. People used to punch codes into cards, with holes in them. The habit of keeping a separate sheet, explaining what each code meant, survived the cards. That sheet is the codebook. And it is still the first thing a careful analyst asks for.
The Codebook
The Dictionary of the Data File
Next: the codebook, and the missing code. A codebook lists, for each variable, a short name, the exact question wording, the allowed codes and their meanings, and the code for a missing answer.
It is the dictionary of the data file. Six months later, Leo asks what a two in column D stood for. The codebook answers it. Without one, coded data becomes a puzzle. And the person who knew the answer may have moved on. A codebook turns private memory into a shared record. Anyone on the team can pick up the file, and read it the same way.
Codebook Entries
Name, Label, Values and Missing
Picture page one of Fernway's pilot codebook. Fernway Snacks is a composite case built for teaching. The first variable is the respondent number. The second is gender: one for female, two for male, and nine for missing. The third asks whether the person bought a bar: one for yes, two for no. And the fourth is an attitude item: liking healthy snacks, from one, strongly disagree, to five, strongly agree.
Each entry has four parts. The variable name is short, with no spaces. The label is the exact wording. The values say what each code means. And the missing column gives the special code for a skipped answer. Anyone should be able to open the data, and read it.
Now, the code for a skipped answer deserves care. If a shopper skips question three, the cell cannot just be empty, in every software package. And typing a zero invents data. A zero looks like a real, very low answer.
Missing Codes
Declare 99 as Missing
So analysts choose a code that can never be a real answer. For example, 99, on a one to five question. And then they declare it as missing, in the software. That second step is the one people forget. Choosing the code is easy. Telling the software what it means is the step that protects the average.
Forget the declaration, and ninety nine is treated as a very enthusiastic shopper. Picture five answers, where one is a ninety nine. The software adds it in like any other answer. Suddenly, the average satisfaction on a one to five scale lands far above five. That is impossible, and yet the spreadsheet prints it without complaint.
Common Mistake
A Missing Code That Could Be Real
Here is a common mistake. People use a missing code that could be a real answer. Say 9 is the missing code, on a question where nine hours is a possible reply. Then you cannot tell the two apart. So choose a code outside the range of real answers. And write it in the codebook.
A codebook can even drive the coding itself. In software, it works as a lookup. Each text answer is swapped for its code. So the answers agree, strongly agree, neutral, agree, and disagree become four, five, three, four, and two.
What does it mean? The same lookup, applied to ten thousand rows, gives identical results. That is why the codebook, not memory, should drive the coding. A tired person typing codes by hand will slip. A lookup will not.
Summated Scales
The Cardboard Statement Trap
Finally: scoring a scale, and reversing negative items. A single Likert question gives a noisy signal. So researchers often ask several statements about the same idea. Then they add the scores into a summated scale. You met that in lesson 5.6.
Fernway's pilot measures attitude toward healthy snacks, with four statements. To catch people who tick every box the same way, one is deliberately worded in reverse. Question three says: "Healthy snacks taste like cardboard."
Here is the trap. Agreeing with question three means a worse attitude. But a five would add to the total, as if it meant a better one. So the item pulls the score the wrong way. A shopper who hates healthy snacks would look like a fan, on that one item. Add it up as it stands, and the scale blurs fans and critics together.
Reverse Scoring
Six Minus the Old Score
The fix is reverse scoring. On a scale from one to five, the new score is 6, minus the old score. In general, the new score is the lowest plus the highest, minus the old score. So on a one to seven scale, it is 8 minus the old score.
Picture each old score flying to its mirror image. A one becomes a five. A two becomes a four. A three stays a three. A four becomes a two. And a five becomes a one. Check it: one plus five is six. Two plus four is six. Any pair that mirrors adds up to six. After reversing, a high number means the same thing, on every item.
And a pro tip. Reverse the item in a new column, and name it clearly. For example, Q3 underscore rev. Keep the original. Then the codebook can say which one feeds the scale. And nothing is lost, if you need to check.
Worked Example
Fan and Critic Pulled Apart
Now see what a missed reversal does, to six respondents. The first respondent loves healthy snacks. So, on the cardboard statement, that person strongly disagrees: a one. The third respondent does not like healthy snacks. So that person strongly agrees with it: a five.
Add the four answers without reversing. The fan scores 15. The critic scores 10. That is a gap of only five points, between two people with opposite views.
Now reverse item three first, and then add. The fan scores 19. The critic scores 6. That is a gap of 13, which is closer to the truth. Two people with opposite views should land far apart. Now they do.
The other respondents shift too. One moves from 14 to 16. Another from 16 to 18. And one stays at 13, because a neutral three on item three is its own mirror. Across all six, the mean scale score is 13.00, out of a possible 20.
Key Takeaways
Did You Reverse Q3
Here is how it plays out at Fernway. Grace's first report shows almost no difference, between shoppers who tried the new bar and those who did not. Nadia asks one question. "Did you reverse Q3?" Grace had not. After the fix, trial shoppers score clearly higher. And Leo has a finding he can use.
What does it mean? One forgotten step hid a real result. The data was fine. The survey was fine. Only the scoring was wrong. That is why reverse-worded items get flagged in the codebook, so nobody forgets them.
Key takeaways. Coding turns answers into mutually exclusive, exhaustive numeric codes. They are written in a codebook, along with a declared missing code. And for a summated scale, reverse-score negatively worded items, before adding. Next, in lesson 8.7, you will open Excel, and respecify variables yourself. This lesson was made by UPI Study.
About Marketing Research at UPI Study
Marketing Research (Marketing 300) is a self-paced online course of 101 video lessons in 13 chapters, from consumer behavior, segmentation and the research process to qualitative methods, surveys and sampling, measurement, experiments, secondary and syndicated data, descriptive statistics, hypothesis tests, correlation and regression, research ethics and reports. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Business courses Every credit course with PRO →
Why take it here
Why students take Marketing Research with UPI Study
Where the credit goes
Universities that work with NCCRS
Marketing Research carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Encoding and Scoring Data in Marketing Research
What is a codebook in marketing research?
How should missing values be coded in survey data?
How do you reverse-score a Likert item?
What happens if you forget to reverse a negatively worded item in a summated scale?
About the Marketing Research course
How many college credits is Marketing Research?
How much does Marketing Research cost and what is included?
Which universities accept UPI Study credits?
How long does Marketing Research take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Marketing Research.
101 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
Updated
3 credits · NCCRSEnroll →