Recoding

From Displayr
(Redirected from Recode)
Jump to navigation Jump to search

Recoding is a type of transformation by which a new variable is created by changing some or all of the values in another variable. For example, a variable containing the number children that a person has may be recoded into another variable indicating whether the person does nor does not have children. The recoding is done at the Raw Data level (i.e., a new Variable is created). For example:

Respondent Old variable Recoded variable
1 0 0
2 1 1
3 3 1
4 2 1
5 0 0
6 0 0
7 1 1
8 1 1
9 7 1
10 0 0

See also