Skip to content

Error if values of string ID cannot be stored as matrix row names #6

@matthew-white

Description

@matthew-white

Example from @shweeneypeas:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions