Dear all,
I'm looking for a way to automatically create column names for a coefficient matrix (and colnames and rownames for a vce matrix) so that the output of ereturn display (or _coef_table) looks like the output of the sem or gsem command (mainly so that the dependent variable is indicated).
As I understand from the documentation I have to use two-part names (see section 14.2.2 in the User's Guide).
Since I'm categorical variables and factor notation my first idea was to use the fvexpand command on my variable list and use the return as colnames but that doesn't give me two part names.
I also looked at the code of the gsem and sem commands (and the ados that belong to it) but I wasn't able to figure out which (exact) part of the code is relevant.
Is there a command/code part or just general advice that might help me with this problem?
Thanks in advance,
Max
I'm looking for a way to automatically create column names for a coefficient matrix (and colnames and rownames for a vce matrix) so that the output of ereturn display (or _coef_table) looks like the output of the sem or gsem command (mainly so that the dependent variable is indicated).
As I understand from the documentation I have to use two-part names (see section 14.2.2 in the User's Guide).
Since I'm categorical variables and factor notation my first idea was to use the fvexpand command on my variable list and use the return as colnames but that doesn't give me two part names.
I also looked at the code of the gsem and sem commands (and the ados that belong to it) but I wasn't able to figure out which (exact) part of the code is relevant.
Is there a command/code part or just general advice that might help me with this problem?
Thanks in advance,
Max
Comment