Stata
Posts  1 - 1  of  1
sumitmanu
Hi Guys,

I have just started to learn stata and am working on a research project with an Econ professor where I need to understand his codes before moving forward with writing mine. so pardon me for a few basic questions.In a program I saw this:

by country: replace gov_domestic`endyear'=gov_domestic`endyear'[_N]/1000

I am confused what is the use of [_N] here in the line .. as it seems that result is same as what one would get without using [_N]

Also, another line that I saw was:

replace aggr_lcperc`endyear'=aggr_emdev_[_n+2] if category==.5

now again here what is the purpose of [_n+2]?

Can someone please throw some light on this.

Thanks a ton,
Sumit.
Save
Cancel
Reply
 
x
OK