The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Bangladesh » How to create media exposure?
How to create media exposure? [message #14193] Sat, 03 March 2018 02:35 Go to previous message
anikhpg42@gmail.com is currently offline  anikhpg42@gmail.com
Messages: 38
Registered: December 2017
Location: Bangladesh
Member

Hi,
I am trying to generate a variable combining 3-4 variables.

Example: At first from v157 v158 v159,I created
1)frequency of reading newspaper (yes no, 1 0) = frn
2)frequency of watching tv (yes no, 1 0) = fwt
3)frequency of listening radio (yes no, 1 0) = flr.

Now combining these 3 variables, I want to make a new variable, named "media exposure" with just (yes no, 1 0).

What should be the command in stata?

I used like this in BDHS14 KR dataset,

gen media= int ((frn+fwt+flr)/3)
ta media

But, I don't think this is right. How can I solve my problem?


ASIBUL ISLAM ANIK
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calculation of stunting from PR dataset
Next Topic: BDHS2014-bdkr data set- Children nutrition- table 11.6 in BDHS report, 4+food group
Goto Forum:
  


Current Time: Wed Dec 11 21:43:53 Coordinated Universal Time 2024