Hello Friends,

I ran a MG command and STATA displayed an error message which reads: "invalid new variable name; variable name ec is in the list of predictors".

I used the following command: "xtpmg d.HEPC d.ecou d.POPG, lr(l.HEPC l.ecou l.POPG) mg replace ec(ec)".

Could anyone please assist me with resolving this?