Hi Statalist Members,
I am using the following code to run some mediation analyses (single mediator) to my entire sample. I wondered whether it is possible to do a mediation analysis to a subsample of the same sample in Stata? I am using Stata 17.
sem (X -> M Y) (M -> Y)
Thank you.
Related Posts with How to do Mediation Analyses to Subsamples
Coefficient on inverse mills' ratio in Heckman MLHi, I am using firm-level survey data and I am interested in using the Heckman approach to test for…
multilevel logistic regression: question about cross-level interactionHello, I have a multilevel logistic regression model, and I'm trying to do cross-level interaction w…
nbreg with fixed effects and clustered se? (no panel data)Hi I have a question regarding to use of fe and clustered se. The majority of the threads on statal…
r(table) with cross-sectional regressionHi Stata members, I have run the following program to run cross sectional regressions by country and…
Interaction of time-invariant variable in fixed effects modelHello everyone, I am currently running fixed effects model to see the relationship between program …
Subscribe to:
Post Comments (Atom)
0 Response to How to do Mediation Analyses to Subsamples
Post a Comment