UNIHIVE

Study Hub UNIPORT CMS 303

CMS 303 · Data Analysis in Communication Research

Preparing data: coding, the codebook and data entry

Editing questionnaires, codebooks for surveys and content analysis, data entry layout, missing values and cleaning.

Our notes

2 min read

Editing

Before coding, check each completed questionnaire or coding sheet: is it complete, legible, consistent ("never watches TV" but names a favourite TV station)? Decide rules for incomplete forms (keep with missing values, or drop if most is blank). Number each form.

Coding

Coding turns answers into symbols (usually numbers) for analysis.

  • Closed questions are pre-coded: Male = 1, Female = 2.
  • Open questions need a coding frame: read a sample of answers, group them into categories, define each category, then code all answers.
  • Content analysis: each unit (a story, a post) is coded for variables such as topic, tone (positive, negative, neutral), source quoted, placement (front page or inside).

The codebook

A document that lists, for every variable:

Variable nameLabelCodesMissing
IDrespondent number1-400
GENDERgender1 = male, 2 = female9
MEDIUMmain news source1 = TV, 2 = radio, 3 = newspaper, 4 = online, 5 = other9
TRUST1"I trust radio news"1 = strongly disagree … 5 = strongly agree9
HOURShours online dailynumber99

It keeps coding consistent across coders and lets others check your work.

Data entry layout

One row per case (respondent or story), one column per variable. Do not put two answers in one cell; a multiple-answer question ("which platforms do you use? tick all") becomes one yes/no column per platform.

Missing values

Give a separate code to "no answer", "don't know" and "not applicable" (for example 9, 8, 7) and declare them as missing in the software, so they are not averaged as real numbers. Report how much data is missing.

Cleaning

  • Run frequency tables for every variable and look for impossible codes (a 6 on a 1-5 scale; age 250).
  • Check logic between questions.
  • Compare a random sample of entered forms with the paper originals.
  • Keep a log of every correction.

Content analysis reliability (preview)

Two or more coders code the same sample of units independently; their agreement is measured (see the topic on reliability). Clear category definitions in the codebook raise agreement.

Ethics in handling data

Store forms and files securely, remove names before sharing data, and keep only what you need (the Nigeria Data Protection Act 2023 applies to personal data).

Exams usually ask

  • What a codebook is; prepare one for a short questionnaire.
  • How to code open-ended answers and multiple-response questions.
  • Steps in cleaning data.

Common mistake

Entering "don't know" as 0 on a scale and then averaging it. Code it as missing, or report it as a separate category.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All CMS 303 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.