tessam30/Bangladesh — pull request #9 by achafetz (2014-12-21 20:11:07+00:00)
Title: updates

02_hhinfra.do (don't remember if I sent this one)

looks good. just making a suggestions below. will read up on factor analysis and give this a second look (probably Thursday since I'm going to an IBM workshop tomorrow).

1)
affected variable - electFuel
issue - potential to be confusing with cookFuel and lightFuel
resolution - renamed electcookFuel
2)
affected variables - dist*
issue - no issue, just clarifying distances are in km
resolution - added km to label

03_hhpc

just finishing up a few lines I didn't get to on Friday. See you at the WLC tomorrow.

1)
affected variables - ntrunk-ndonkey
issue - in creating variable for number of assets, the dummy variable trunk-donkey was duplicated.
action - in generating variable, multiplied `name’ by d1_04, the quantity of that asset (and then replaced missing values with zero).

2)
affected variables - nsolar, ngenerator
issue - doesn't match other dummy variables; used "." instead of "0"
action - added "replace nsolar = 0 if nsolar==." and "replace ngenerator = 0 if ngenerator==."

3)
affected variables - munitprice, hhdurasset
issue - to calculate hhdurasset, you take the median HH value of a good and multiply by the unit. i would think you want to take the median of the HH value's unit price (rather than overall (d1_10= “Current value/ if asset sold today how much will you receive? (report total value for all items owned)” ) and then take the median. (drops the HH average of the total value of all durables from 34,020 to 20,295 Taka.
action -
old: egen munitprice = median(d1_10), by(d1_02)
new: egen munitprice = median(d1_10/d1_04), by(d1_02)

4)
affected variables - munitprice, hhagasset
issue - same as 3
action - divided median price by units

5)
affected variables - ag assets
issue - commands calls for “kaste" variable, which is not in dataset
action - changed “kaste” to “tractor” in “qui factor tractor-harvester, pcf” and “alpha kaste-harvester”