Skip to main content

Table 1 Coding of variables

From: Relationship between chronic diseases and depression: the mediating effect of pain

Variable

Coding

Chronic disease

No chronic disease = 0, One chronic disease = 1, Two or more chronic diseases = 2

Depression

No = 0, Yes = 1

Pain severity

No pain = 0, Mild pain = 1, Moderate to severe pain = 2

Take steps to relieve pain

No = 0, Yes = 1

Gender

Female = 0, Male = 1

Age

45–59 = 1, 60–69 = 2, 70–101 = 3

Education

Uneducated = 0, Primary school = 1, Middle school = 2, High school and above = 3

Urbanity

Rural = 0, Urban = 1

Marital status

Unmarried = 0, Married = 1

Employment status

No = 0, Yes = 1

Insurance situation

No = 0, Yes = 1