Dear fellow Stata users,
my model consists out of one IV, several MVs and one DV and is overall pretty basic (see image below for illustration). I also want to add CVs later.
To get a better understanding of my model I provide you with a short description of the variables. Please excuse me if my explanations are not very accurate. I am not very good in statistics but I promise to try my best.
IV (or "FF" in the image): This is a binary variable coded with 0 or 1.
MVs (e.g. "WorkLifeBalance" in the image): The data of the MVs is based on employer ratings from an employer rating website similar to Glassdoor.com. On this website employers can rate several factors like work-life balance, salary, image, career development etc. based on a 5 point Likert-Scale. Imagine you have watched a movie and afterwards you have to rate the movie using the factors "action" and "fun" with a 5 point Likert-Scale. The data for my MVs is basically be collection of the ratings for "action" and "fun" for many movies made by even more movie watchers. I think in statistics this would be called a categorical variable but please correct me if I'm wrong.
DV ("Empfehlung" in the image): This data is based on recommendation values for several companies. After rating their employer the employees can enter if they would recommend their employer to other people. For example, if 5 people recommend company A and another 5 people don't recommend the same company, company A has recommendation rate of 50% (5 yes, 5 no).
To give you further illustration I have added an excerpt of my data for one company:
The IV, DV and MVs are in yellow. First we have the binary IV (1) then the DV (0.65) and then follow the MVs.
Thats were my problem or let's say my challenges with Stata starts.
I have already watched several clips on youtube, have googled around, and have checked the FAQ and several help files but still I'm not sure how to perform my mediation analyses correctly.
First I tried to build my model with the SEM builder but when I want to check for the indirect effect via "estat teffects" the results show no paths (see screenshot below).
How is this possible and in consideration of my data is it even the right way to use the SEM builder?
Then I found the following instruction about how to do mediation analysis with the sem command (https://stats.idre.ucla.edu/stata/fa...e-sem-command/).
Unfortunately even when I use the command for a simple mediation model with my data ["sem (MV <- IV)(DV <- MV IV)"] stata returns:
"model not identified; no paths from latent variable Empfehlung to observed variables r (503);"
So far I have understood that I am not using latent variables in my model, so I guess this is the problem with sem but please correct me if I'm wrong.
Then I have found the instruction about how to analyze multiple mediators in stata using the sureg command (https://stats.idre.ucla.edu/stata/fa...tors-in-stata/).
Eventually I am able to follow this instruction and after the bootstrapping process I have also obtained some okay looking values but I have not clue if this is the right approach to do a mediation analysis with my data.
Recently I have also tried out the the instruction about how to perform a sobel goodman mediation test (https://stats.idre.ucla.edu/stata/fa...ests-in-stata/). I was also able to follow this instruction but again I'm not sure if the sobel goodman approach is the right one for me. Using the sobel goodman test also provides me with very weird results.
I would very much appreciate if you could tell me what I'm doing wrong. If the sem command or sem builder is not the correct way which way is it? Is it a problem that my IV is binary but not the rest of the variables? Is there something else I might have overlooked?
If you need any further information to assist me, just let me know and please excuse me if I am a bit of a dummy regarding statistics.
Overall I have the feeling that my model is not very complex. Therefore, I'm sure that any recommendations from you guys are also helpful for other Stata beginners who visit the forum.
Thank you very much and best regards,
Robin
Edit: I've tried to resize the images and to make them appear smaller but somehow this hasn't worked so far.
my model consists out of one IV, several MVs and one DV and is overall pretty basic (see image below for illustration). I also want to add CVs later.
To get a better understanding of my model I provide you with a short description of the variables. Please excuse me if my explanations are not very accurate. I am not very good in statistics but I promise to try my best.
IV (or "FF" in the image): This is a binary variable coded with 0 or 1.
MVs (e.g. "WorkLifeBalance" in the image): The data of the MVs is based on employer ratings from an employer rating website similar to Glassdoor.com. On this website employers can rate several factors like work-life balance, salary, image, career development etc. based on a 5 point Likert-Scale. Imagine you have watched a movie and afterwards you have to rate the movie using the factors "action" and "fun" with a 5 point Likert-Scale. The data for my MVs is basically be collection of the ratings for "action" and "fun" for many movies made by even more movie watchers. I think in statistics this would be called a categorical variable but please correct me if I'm wrong.
DV ("Empfehlung" in the image): This data is based on recommendation values for several companies. After rating their employer the employees can enter if they would recommend their employer to other people. For example, if 5 people recommend company A and another 5 people don't recommend the same company, company A has recommendation rate of 50% (5 yes, 5 no).
To give you further illustration I have added an excerpt of my data for one company:
The IV, DV and MVs are in yellow. First we have the binary IV (1) then the DV (0.65) and then follow the MVs.
Thats were my problem or let's say my challenges with Stata starts.
I have already watched several clips on youtube, have googled around, and have checked the FAQ and several help files but still I'm not sure how to perform my mediation analyses correctly.
First I tried to build my model with the SEM builder but when I want to check for the indirect effect via "estat teffects" the results show no paths (see screenshot below).
How is this possible and in consideration of my data is it even the right way to use the SEM builder?
Then I found the following instruction about how to do mediation analysis with the sem command (https://stats.idre.ucla.edu/stata/fa...e-sem-command/).
Unfortunately even when I use the command for a simple mediation model with my data ["sem (MV <- IV)(DV <- MV IV)"] stata returns:
"model not identified; no paths from latent variable Empfehlung to observed variables r (503);"
So far I have understood that I am not using latent variables in my model, so I guess this is the problem with sem but please correct me if I'm wrong.
Then I have found the instruction about how to analyze multiple mediators in stata using the sureg command (https://stats.idre.ucla.edu/stata/fa...tors-in-stata/).
Eventually I am able to follow this instruction and after the bootstrapping process I have also obtained some okay looking values but I have not clue if this is the right approach to do a mediation analysis with my data.
Recently I have also tried out the the instruction about how to perform a sobel goodman mediation test (https://stats.idre.ucla.edu/stata/fa...ests-in-stata/). I was also able to follow this instruction but again I'm not sure if the sobel goodman approach is the right one for me. Using the sobel goodman test also provides me with very weird results.
I would very much appreciate if you could tell me what I'm doing wrong. If the sem command or sem builder is not the correct way which way is it? Is it a problem that my IV is binary but not the rest of the variables? Is there something else I might have overlooked?
If you need any further information to assist me, just let me know and please excuse me if I am a bit of a dummy regarding statistics.
Overall I have the feeling that my model is not very complex. Therefore, I'm sure that any recommendations from you guys are also helpful for other Stata beginners who visit the forum.
Thank you very much and best regards,
Robin
Edit: I've tried to resize the images and to make them appear smaller but somehow this hasn't worked so far.
Comment