Hello,
i used the egen in previous data anlysis and it worked pretty well.
The code looked somehting like:
egen Faktor1_specific = mean(Faktor1) if vote ==1
The problem is that only missings are generated with this. Before it worked fin.
I do get value output for vote and for Faktor1, but i get only missings when i use egen Faktor1_specific
Thanks for any help !!!!
Related Posts with egen command is only generating missings
Test for collinearityHi all, I'm trying to estimate the Wald-DID below: Code: svy: ivregress 2sls OUTCOMEVAR i.time…
Creating a variable that corresponds the proportion of observations that the current observation is larger thanHi, I am looking to create a variable that corresponds to the proportion (or percentage) of observat…
Solving Endogeneity in Panel Data Analysis: (R coding)Hi, I need your help in my regression model: I have a panel data for 6 year at state level (50 state…
Causal Random ForestHi: Is anyone aware or has anyone tried to implement Causal Random Forests to examine heterogeneous…
Using Classes from LCA in another modelDear Statalisters, I am using Stata17. I have run the following LCA model (the analysis try to grou…
Subscribe to:
Post Comments (Atom)
0 Response to egen command is only generating missings
Post a Comment