X hits on this document

Word document

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

415 views

0 shares

0 downloads

0 comments

33 / 44

zgeor zhaw zidaho zillin zindiana ziowa zkent zkan zmaine zlouis zmary ///

  zmass zmich zminn zmiss zmissouri zmont zneb znev znhamp zjersey ///

  zmexico znyork zncar zndak zohio zok zore zpenn zrhode zscar ///

  zsdak ztenn ztex zutah zvmont zvirg zwash zwvirg zwis,

correlation(ar1)

xtpcse  sptaxrat xsptaxrat pover elderi whitei nameri defconp dhousecc

dsenc ///

dhouseccc dsenccc dhouseccp dsenccp pres repv child5t17 margin3less ///

  zala zalaska zariz zark zcal zcolo zconn zdel zflor ///

  zgeor zhaw zidaho zillin zindiana ziowa zkent zkan zmaine zlouis

zmary ///

  zmass zmich zminn zmiss zmissouri zmont zneb znev znhamp zjersey ///

  zmexico znyork zncar zndak zohio zok zore zpenn zrhode zscar ///

zsdak ztenn ztex zutah zvmont zvirg zwash zwvirg zwis, correlation(ar1) rhotype(tscorr)

The following commands were both to go from calendar to fiscal years

and to collapse annual data into four year periods (i.e., presidential administrations) from 1981 through 2004

set more off

version 9

use c:/TaxReceiveRatioTime, clear

tsset state year, yearly

bysort state year: assert _n==1

by state: gen sptaxratcal= .75*sptaxrat+.25*(sptaxrat[_n+1]) if _n <_N

by state: gen lagyear=year if _n==1

assert lagyear==1981|lagyear==.

assert year>=1981

by state: replace lagyear= year if mod(year-1981,4)==0

by state: replace lagyear= (lagyear[_n-1]) if lagyear==.

tab lagyear

bysort lagyear: sum year

bysort state lagyear year: assert _n==1

local vlist ""

//convert string variables to numeric

foreach var of varlist medinc1 medinc thou {

replace `var'=subinstr(`var',",","",.)

destring `var', replace

}

foreach var of varlist state-lagyear{

local vlist "`vlist' `var'"

}

local vlist: subinstr local vlist "state" "", all word

local vlist: subinstr local vlist "lagyear" "", all word

di "`vlist'"

collapse `vlist', by(state lagyear)

bysort state lagyear: assert _n==1

Document info
Document views415
Page views478
Page last viewedWed Dec 07 08:55:35 UTC 2016
Pages44
Paragraphs843
Words17107

Comments