Dear Nick Cox , I encounter an unintuitive error which -labmask- (SSC). Do you have an idea what happens there?
-labmask- works well for a few hundret values but it stops at one case.
My code is as follows:
The unique number of aobj_vorg is 1.054 and the unique number of projekttitel1 is 1.039.
Tracing the error shows the following sequence at the end:
-labmask- works well for a few hundret values but it stops at one case.
My code is as follows:
Code:
labmask aobj_vorg, val(projekttitel1) lblname(l_aobj)
Tracing the error shows the following sequence at the end:
Code:
su `example' if `group' == `i', meanonly
= su __000005 if __000004 == 1053, meanonly
- local label = `values'[`r(min)']
= local label = projekttitel1[1082]
- local value = `varlist'[`r(min)']
= local value = aobj_vorg[1082]
- label def `lblname' `value' `"`label'"', modify
= label def l_aobj 5003000000 `"CEDUS"', modify
--------------------------------------------------------------------------------------------------------------------------------------------------------------- begin label ---
- version 10.0
- local vv : display "version " string(_caller()) ", missing:"
- gettoken val : 0
- if (strpos("`val'", "val") > 0 ) {
= if (strpos("def", "val") > 0 ) {
gettoken val 0 : 0
syntax anything [, nofix]
if "`fix'" != "" {
local fix ", nofix"
}
gettoken var rest : anything
while `"`rest'"' != "" {
gettoken lab rest : rest
local label "`lab'"
}
local vlist : list anything - lab
if "`lab'" == "." {
local lab ""
}
foreach var of varlist `vlist' {
`vv' _label `val' `var' `lab' `fix'
}
}
- else {
- `vv' _label `macval(0)'
= version 7, missing: _label def l_aobj 5003000000 `"CEDUS"', modify
may not label 5003000000
}

Comment