X hits on this document

# click on “Load Preferences”; (4) click on “Factory Settings.” If the ... - page 36 / 44

423 views

0 shares

36 / 44

gen fuhdemc= fuhdemp

recode  fuhdemc (.0000/.5 = 0) (.5001/1 = 1)

gen demcontn =  flhdemc +  fuhdemc + pres

recode demcontn (.0001/2.999 = 0) (3 = 1)

gen flhrepc = flhrepp

recode  flhrepc (.0000/.5 = 0) (.5001/1 = 1)

gen fuhrepc= fuhrepp

recode  fuhrepc (.0000/.5 = 0) (.5001/1 = 1)

gen pres1 = pres

recode pres1 (0 = 1) (1 = 0)

gen repcontn = flhrepc +  fuhrepc + pres1

recode repcontn (.0001/2.999 = 0) (3 = 1)

gen pres2 = pres

recode pres2 (1=3)

gen flhdemc1= flhdemc

recode flhdemc1 (1=2)

gen fds= pres2 + flhdemc1 + fuhdemc

recode fds (5=1) (4=1) (0/3=0) (6=0)

gen fdr= pres2 + flhrepc + fuhrepc

recode fdr (5=1) (else=0)

gen pres3 = pres1

recode pres3 (1=3)

gen flhrepc1=flhrepc

recode flhrepc1 (1=2)

gen frs=pres3 + flhrepc1 + fuhrepc

recode frs (5=1) (4=1) (0/3=0) (6=0)

gen frd=pres3 + flhdemc + fuhdemc

recode frd (5=1) (else=0)

drop pres2 pres3 flhtot fuhtot flhdemc1 flhrepc1

The following were useful obtaining the proportion of income going to particular income groups

use "G:/statedata.dta", clear

tsset stnum year, yearly

drop q1cper q2cper q3cper q4cper q5cper ratq5q1c

gen q1cper1 = q1clow/5

gen q1cper = q1cper1/meanic

gen q2cper1 = q2c/5

gen q2cper = q2cper1/meanic

gen q3cper1 = q3c/5

gen q3cper = q3cper1/meanic

gen q4cper1 = q4c/5

gen q4cper = q4cper1/meanic

gen q5cper1 = q5chigh/5

gen q5cper = q5cper1/meanic

drop q1cper1 q2cper1 q3cper1 q4cper1 q5cper1

 Document views 423 Page views 487 Page last viewed Fri Dec 09 00:20:01 UTC 2016 Pages 44 Paragraphs 843 Words 17107