Good afternoon,
Did anyone have a problem with egen command, when it didn't work with any function? The problem is that even if I try to run xttest1 of xtcsd Stata gives me back an error "unknown egen function max()" in the former case and ""unknown egen function group()" in the latter.
Moreover, it does not work even if I try to generate simple variables like mean by ().
Stata's output:
. egen mdLiab=mean(dLiab), by(company)
unknown egen function mean()
r(133);
If trying to balance a panel using xtbalance, Stata says: "unknown egen function rmiss()".
I would really appreciate any feedback as it seems that without this egen command I cannot run commands that I need.
Did anyone have a problem with egen command, when it didn't work with any function? The problem is that even if I try to run xttest1 of xtcsd Stata gives me back an error "unknown egen function max()" in the former case and ""unknown egen function group()" in the latter.
Moreover, it does not work even if I try to generate simple variables like mean by ().
Stata's output:
. egen mdLiab=mean(dLiab), by(company)
unknown egen function mean()
r(133);
If trying to balance a panel using xtbalance, Stata says: "unknown egen function rmiss()".
I would really appreciate any feedback as it seems that without this egen command I cannot run commands that I need.
Comment