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
Use past quarter average of data to regress with next quarter data.Hello all, I am a newbie to STATA and struggling with a peculiar problem. Hoping for some insight f…
Confusion about how to keep one row of data for each student with the most number of classes taken in a programI am using Stata 15.1 for Windows. I would like to keep a certain student in the program that he co…
-mimrgns- and -marginsplot-The help file for mimrgns states that while "[i]n principle, marginsplot works after mimrgns […], th…
Weighting without knowing psuDear Stata users, I want to conduct some cross-sectional analysis with data from the South African …
Way to identify first successful loop iteration?Hi Stata, I have a loop: forv x = 1/100{ cap{ [stata_commands] [if first successful iteration, exe…
Subscribe to:
Post Comments (Atom)
0 Response to egen command is only generating missings
Post a Comment