set more off
sysuse auto, clear
gen x = _n
tostring(x), replace
replace price=0 if _n==3
save temp, replace
sysuse auto, clear
gen x = _n
tostring(x), replace
save temp2, replace
*Set locals
local orig_dta temp
local bc_dta temp2
*local id make
local id x // if you switch to this, and comment out the line above, it runs fine.
local t1vars price foreign
local t2vars mpg
local t3vars rep78
*Run back check
*set trace on
bcstats, surveydata(`orig_dta') bcdata(`bc_dta') id(`id') t1vars(`t1vars') ///
t2vars(`t2vars') t3vars(`t3vars') nosymbol lower trim replace