Wize Marketing Research Textbook > Data Analysis

Data Processing and Basic Data Analysis

Marketing Data Preparation: From Responses to a Checked File

Marketing data preparation turns survey responses, customer records or campaign exports into a file you can interpret consistently. Before comparing customers or evaluating a campaign, establish what each row represents, what each recorded value means and which records belong in the analysis. A tidy-looking spreadsheet can still contain duplicate submissions, inconsistent category labels and blanks with different meanings.

Establish the file and its rules

Begin by preserving an unchanged copy of the source data. Work on a separate preparation copy, and identify the unit of observation. If one row represents a respondent, several rows with the same respondent identifier require investigation. If one row represents a purchase, repeated customer identifiers may be entirely appropriate.


Create a codebook, a document specifying each variable's meaning, permitted values, category codes and missing-response rules. Include the wording or source of the variable where useful. For a purchase-frequency question, the codebook should distinguish respondents who answered from those who were never meant to receive the question.


Decide exclusion rules before inspecting desirable outcomes. A rule might remove test submissions or retain the earliest complete submission when a respondent submits twice. The appropriate rule depends on the research design; document the rule and apply it consistently.


A preparation workflow connects a preserved raw file to documented checks and a validated analysis file.


Check records without inventing responses

Data editing is the systematic examination of records for omissions, inconsistencies and possible recording errors. Check whether values fall within permitted ranges, identifiers follow the expected format and answers agree with the questionnaire's routing rules.


A reported age of 240 should trigger a check. It does not justify changing the response to 24 without supporting evidence. Consult the original response or another authorized source when available. If the intended value cannot be established, retain an appropriate unresolved or missing status rather than guessing.



Duplicate handling also requires context. Identical names do not establish that two records represent the same person. Even a repeated identifier may reflect a legitimate repeat measurement. Use the study's identifiers, timestamps and submission rules to decide which records to retain.

Code categories and distinguish blank meanings

Coding assigns consistent values to responses. For example, Daily, daily and Every day may receive the same code if they express the same response category. Preserve the original response in a separate field so the transformation remains traceable.


Numeric category codes are labels. Coding daily as 1 and weekly as 2 does not establish a meaningful numerical distance between them. The meaning comes from the codebook, not the size of the code.


Recorded situation

Prepared meaning

Preparation action

A respondent explicitly reports zero purchases

Observed zero

Retain zero as a valid response

An eligible respondent leaves purchase frequency blank

Missing response

Apply the documented missing code

A nonbuyer correctly skips purchase frequency

Not applicable

Apply a separate routing status

A response contains an unrecognized category

Unresolved value

Check the source before assigning a category


A skip rule explains why some blanks are expected. Do not combine these with unanswered questions from eligible respondents. If negative numbers represent special statuses, ensure later analysis excludes those codes from calculations that treat values as measurements.



Validate the prepared file against the codebook. Reconcile retained and excluded record counts, check that identifiers are unique where required and confirm that every prepared category is permitted. Maintain an audit trail, including file versions and exclusions. Preparation makes the recorded evidence consistent; it does not establish that the sample represents the market.

What to remember

  • Preserve the source file and define what one row represents.
  • Document codes, exclusions and special statuses before applying them.
  • Investigate questionable values instead of guessing their intended meaning.
  • Keep observed zero, missing and not applicable distinct.
  • Validate the prepared file and record how it was produced.

Example: Preparing a Campus Café Survey

A campus café exports 48 survey rows. Each retained row should represent one respondent. The approved rules identify five surplus duplicate submissions and three consent withdrawals for removal. These groups do not overlap, and removing the surplus submissions leaves unique respondent identifiers.


Among the retained respondents, 24 report using the café's mobile ordering service. Everyone else reports not using it. Only users should answer the mobile-ordering frequency question. Three users leave that question blank; the remaining users give permitted frequency responses. All nonusers correctly skip it.


The approved codebook is shown below. Daily and Every day belong to the same category.


Prepared frequency value

Meaning

1

Daily

2

Weekly

3

Monthly

-9

Missing answer from an eligible user

-8

Not applicable to a nonuser


Complete the following parts as a marketing data preparation task. Keep the raw export unchanged.


a) How many respondent records should the prepared file contain?


First, apply the duplicate rule. There are ________ surplus submissions to remove from the 48 exported rows.


48 rows−5 rows=43 rows48\ \text{rows}-5\ \text{rows}=43\ \text{rows}


The file contains ________ after removing the surplus submissions. Next, remove the three consent withdrawals. Because the two exclusion groups do not overlap, subtract each group once.


43 rows−3 rows=40 rows43\ \text{rows}-3\ \text{rows}=40\ \text{rows}


The prepared file should contain 40 respondent records. Reconcile this against the source: 40 retained rows plus 5 surplus submissions plus 3 withdrawals equals the original 48 rows.


b) How many frequency responses should receive each special status, and how many contain an observed frequency category?


First, establish eligibility. There are ________ mobile-ordering users, so 24 respondents should have answered the frequency question. Of these, three left it blank.


24 users−3 users=21 users with an observed frequency24\ \text{users}-3\ \text{users}=21\ \text{users with an observed frequency}


The number with an observed frequency category is 21. Next, find the nonusers among the ________ retained respondents.


40 respondents−24 users=16 nonusers40\ \text{respondents}-24\ \text{users}=16\ \text{nonusers}


Assign -9 to 3 missing responses and -8 to 16 not-applicable responses. There are 21 observed frequency responses. Check that the statuses cover the retained file: 3 plus 16 plus 21 equals 40 respondents.


A valid skip is not an unanswered question from an eligible user. Combining these statuses would hide which respondents had an opportunity to answer.


c) Specify how to prepare the frequency field and document the work before releasing the file.


Preserve the raw frequency text and create a separate prepared field. Assign code 1 to Daily and Every day, code 2 to Weekly and code 3 to Monthly. Apply -9 to the three eligible blanks and -8 to the sixteen valid skips.


Maintain an audit trail, a record of the changes and the reasons for them. Record the duplicate-selection rule, the excluded row identifiers, the withdrawal exclusions and the mapping from raw text to prepared codes.


Finally, verify unique respondent identifiers, 40 retained records and permitted frequency codes only. Confirm that the 24 users have either an observed category or the missing status, while all 16 nonusers have the not-applicable status.


The release should contain the validated preparation file, its codebook and its change log. Keep the special negative codes out of calculations that would treat them as measured frequencies.

A marketing research assistant is preparing a customer survey export for analysis. Match each preparation resource or activity to its primary purpose.

Match each term
A.

Tests the prepared file against documented requirements before release

B.

Records what changed, why it changed and which rules were applied

C.

Documents variable meanings, permitted values and special response codes

D.

Examines records for omissions, inconsistencies and possible recording errors

Validation

Data editing

Codebook

Audit trail

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A supermarket survey asks adults to enter their age in years. One respondent enters 310. The source response confirms that entry, but no further information identifies the intended age. The preparation rules permit ages from 18 to 110 and provide a code for unresolved invalid values. What should the assistant do?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An online retailer asks customers who purchased during the past month how often they visited its website that month. Nonpurchasers correctly skip the visit-frequency question. Apply the approved codes: 10 for daily, 20 for weekly, 30 for monthly, -1 for an eligible respondent's missing answer and -2 for not applicable. The approved coding instructions treat Every day as daily. Enter each prepared code as an exact integer.


Respondent

Purchased in past month

Raw visit-frequency response

R51

Yes

Weekly

R52

No

Blank

R53

Yes

Blank

R54

Yes

Every day

R55

Yes

Monthly

RespondentPrepared visit-frequency code
R51
R52
R53
R54
R55

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors