R list members,

I am trying to replicate a command script in STATA and find
equivalency in R to the following Stata command:

egen stratida = concat(year byregn2 group) if sample==1
egen stratidb = concat(year byregn2 group) if sample==2
egen stratidc = concat(year byregn2 group) if sample==3

Not sure if I should just try to make a for loop and use the paste
operator or if there is somewhere else I should be looking.


Thanks,

Daniel

	[[alternative HTML version deleted]]

