Dear community,
currently I want to conduct a mediation analysis in Stata using the medeff command. However I am unable to find out if the medeff command recognizes that the treatment intensity is continuous.
My (simplified) code is:
medeff (regress M X x1 x2 x3) (regress Y X M x1 x2 x3)if year==2016, treat(X 0 4.536) mediate(M) sins(1000) seed(1) And I do get an output although I also get the notification "The number of observations in the Data is less thatn the number of simulations. Expanding the data to the number of simulations" I'd be beyond grateful if someone could tell me if the medeff command treats my treatment variable as continuous or not. Alternatively I'd also be happy with an alternative approach to this problem :D
Best
Jil
Related Posts with medeff with continuous treatment intensity
MFX table logit commandHi all, I'm fairly new to Stata since I need it to write my bachelor thesis. However I'm stuck... I…
Chow test statisticHi everyone! I tried doing a chow test using -test- and the following command: Code: . suest Brahmi…
Setting version, seed, and sortseed not sufficient for reproducibility?The following code appears to produce different results depending on the Stata 16.1 edition I use. …
Clogit vs Xtlogit with FE vs Logit with Dummy VariablesHi, I have an unbalanced panel data of stocks with N=20,000 and T=50 years. I have 50 industries. I…
Options starting with "no" doesn't work, bug or feature?I am defining a program that has non-required options. When the option starts with "no", it doesn't …
Subscribe to:
Post Comments (Atom)
0 Response to medeff with continuous treatment intensity
Post a Comment