Jaemin Lee
Participant
Post count: 17

The same goes for accum: none of the examples work, e.g.,

webuse grunfeld, clear

asdocx, row( \i, \i, invest, \i, \i, kstock,\i) replace
asdocx, row( Periods, N, Mean, SD, N, Mean, SD)

sum invest if inrange(year , 1935, 1945)
asdocx, accum(r(N)',r(mean)’, `r(sd)’)
sum kstock if inrange(year , 1935, 1945)
asdocx, accum(r(N)',r(mean)’, `r(sd)’)
asdocx, row( 1935-1945, $accum)

or

sum invest if inrange(year , 1946, 1954)
asdocx, accum(r(N)',r(mean)’, `r(sd)’)
sum kstock if inrange(year , 1946, 1954)
asdocx, accum(r(N)',r(mean)’, `r(sd)’)
asdocx, row( 1946-1954, $accum)

All yields same error: varlist not allowed.