variable year with value from 2000-2010
variable quarter with value from 1-4
variable country with the name of the country
i use the command like this
Code:
gen time = yq(year,quarter) format time %tq encode country, gen(name) xtset name time
correct, right ?
0 Response to Generate time value with year and quarter and xtset
Post a Comment