Hi, hope you be well.
I need a little help here, I would like to combine multiple dtables while expanding the levels of each control variable across my outputs. Here is my attempted code:
collect clear
dtable i.destino ing_max if adulto_joven == 1, by(sexo, notot test) name(sexo) ///
factor(, statistics(fvfrequency fvpercent )) ///
nformat(%16.0fc fvfrequency) ///
nformat(%9.1f fvpercent) ///
continuous(, statistics(mean sd)) ///
nformat(%9.0f mean sd) ///
sformat((%s) semean)
dtable i.destino ing_max if adulto_joven == 1, by(nivel_educ, notot test) name(nivel_educ) ///
factor(, statistics(fvfrequency fvpercent )) ///
nformat(%16.0fc fvfrequency) ///
nformat(%9.1f fvpercent) ///
continuous(, statistics(mean sd)) ///
nformat(%9.0f mean sd) ///
sformat((%s) semean)
collect combine tablas = sexo nivel_educ
collect layout (var) (group#result)
collect preview
The output i get is:
collect layout (var) (group#result)
Collection: tablas
Rows: var
Columns: group#result
Your layout specification does not uniquely match any items. One or more of the following
dimensions might help uniquely match items: across, cmdset, collection, colname, destino,
nivel_educ, result, sexo, statcmd.
I'm aware too that i could use a loop but my principal concern it's about the combine.
Thanks
I need a little help here, I would like to combine multiple dtables while expanding the levels of each control variable across my outputs. Here is my attempted code:
collect clear
dtable i.destino ing_max if adulto_joven == 1, by(sexo, notot test) name(sexo) ///
factor(, statistics(fvfrequency fvpercent )) ///
nformat(%16.0fc fvfrequency) ///
nformat(%9.1f fvpercent) ///
continuous(, statistics(mean sd)) ///
nformat(%9.0f mean sd) ///
sformat((%s) semean)
dtable i.destino ing_max if adulto_joven == 1, by(nivel_educ, notot test) name(nivel_educ) ///
factor(, statistics(fvfrequency fvpercent )) ///
nformat(%16.0fc fvfrequency) ///
nformat(%9.1f fvpercent) ///
continuous(, statistics(mean sd)) ///
nformat(%9.0f mean sd) ///
sformat((%s) semean)
collect combine tablas = sexo nivel_educ
collect layout (var) (group#result)
collect preview
The output i get is:
collect layout (var) (group#result)
Collection: tablas
Rows: var
Columns: group#result
Your layout specification does not uniquely match any items. One or more of the following
dimensions might help uniquely match items: across, cmdset, collection, colname, destino,
nivel_educ, result, sexo, statcmd.
I'm aware too that i could use a loop but my principal concern it's about the combine.
Thanks

Comment