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]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.