Dear Stata community,
I am evaluating the evolution of sleep duration through a five-year period. I use a structural equation model (SEM) to manage the fact that your past habit of sleep affects your present habit of sleep. For this, I am using data from high school students. Each year, some students came in and others came out of the sample. I use the full information maximum likelihood (FIML) to deal with the missing data and the case that are not presents during the five years. I am really interested in the marginal effects. When I use the command margins, in Stata, it only uses the complete cases. Is there a margins command that also considers cases with missing data? Otherwise, I feel that the margin command does not give me a representative estimate, I go from 37,000 individuals to less than 100 complete cases.
Thank you for your time,
Anne
I am evaluating the evolution of sleep duration through a five-year period. I use a structural equation model (SEM) to manage the fact that your past habit of sleep affects your present habit of sleep. For this, I am using data from high school students. Each year, some students came in and others came out of the sample. I use the full information maximum likelihood (FIML) to deal with the missing data and the case that are not presents during the five years. I am really interested in the marginal effects. When I use the command margins, in Stata, it only uses the complete cases. Is there a margins command that also considers cases with missing data? Otherwise, I feel that the margin command does not give me a representative estimate, I go from 37,000 individuals to less than 100 complete cases.
Thank you for your time,
Anne

Comment