Skip to main content

Table 1 Coding of variables

From: The correlation analysis of WeChat usage and depression among the middle-aged and elderly in China: the mediating role of social participation

Variable

Coding

Depression

< 10 = 0, ≥10 = 1

Levels of depression

0 ~ 30

WeChat usage

Not using the WeChat =0, Using the WeChat =1

Social participation

No = 0, Yes = 1

Levels of social participation

0 ~ 10

Voluntary activities

No = 0, Yes = 1

Levels of voluntary activities

No = 0, One kind = 1, Two kinds = 2, Three kinds = 3

Recreation

No = 0, Yes = 1

Levels of recreation

No = 0, One kind = 1, Two kinds = 2, Three kinds = 3

Cultural activities

No = 0, Yes = 1

Levels of cultural activities

No = 0, One kind = 1, Two kinds = 2

Other activities

No = 0, Yes = 1

Levels of other activities

No = 0, One kind = 1, Two kinds = 2

Age

≥45

Gender

Female = 0, Male =1

Marital status

Unmarried = 0, Married = 1

Residence

Rural = 1, Urban = 2

Education

No formal education = 1, Elementary school = 2, Middle school = 3, High school = 4, College or above = 5

Self-reported health

Very poor = 1, Poor = 2, Fair = 3, Good = 4, Very good = 5

ADL

No impaired = 0, Impaired = 1

Smoke status

Still have = 1, Quit = 2, No = 3

Drink status

No = 0, Yes = 1

Sleep time

Take the log of sleep time

Employment

No = 0, Yes = 1

Pension insurance

No = 0, Yes = 1

Medical insurance

No = 0, Yes = 1

Chronic diseases

No = 0, One kind = 1, Two kinds = 2, Three kinds = 3, Four kinds and more = 4