a week ago
Can anyone help me to translate this code from stata to SAS :
. qui gen repsample=.
. qui replace repsample=0 if shaname=="North East"
. repsample 20, cont(listsize soaimd07) bincat(ruralvar) randomperc(30)
> seednum(16) retain(repsample)
a week ago - last edited a week ago
Most of us on the SAS forum have little or no experience with STATA. You may get better help if tell us what that STATA code is supposed to actually do.
As a minimum you might at least list your existing SAS variable names and which are numeric and which are character.