Hello.
I've started using the command "med4way" recently for mediation analyses. The issue is that when I indicate the categorical covariables with the prefix i. , STATA doesn't run the syntaxis.
Here's an example:
med4way s_total ST_tot sue_00 i.aj_c ed_vs i.se_vs zIM_00 im_m im_p i.edu_m i.edu_p i.recom_lac ffq_ener act_fis i.edo_m i.edo_p, yreg(linear) mreg(linear) a0(2) a1(0) m(10.38453)
The error that results from this is as follows:
factor-variable and time-series operators not allowed
r(101);
.
So, I wonder if is necessary to indicate the categorical confounder variables with this prefix when using the command "med4way" and how I can do this...
Could you please help me with this?
I've started using the command "med4way" recently for mediation analyses. The issue is that when I indicate the categorical covariables with the prefix i. , STATA doesn't run the syntaxis.
Here's an example:
med4way s_total ST_tot sue_00 i.aj_c ed_vs i.se_vs zIM_00 im_m im_p i.edu_m i.edu_p i.recom_lac ffq_ener act_fis i.edo_m i.edo_p, yreg(linear) mreg(linear) a0(2) a1(0) m(10.38453)
The error that results from this is as follows:
factor-variable and time-series operators not allowed
r(101);
.
So, I wonder if is necessary to indicate the categorical confounder variables with this prefix when using the command "med4way" and how I can do this...
Could you please help me with this?

Comment