Hello all,
I have generated a new variable using gen:
gen acmeanweekly = (aud1avfreq_7*aud2avamount_7)
However, some of the results are equal to zero and these appear to be dropped from the results. Is there an additional code I can use in order to keep outcomes which equal zero?
Thank you!
Philippa
Related Posts with Multiplication using gen
regular expression to extract a part of a string variableDear Statalist Suppose I have a string variable Name that is formatted as Text1 (Text2) (Text3), ho…
Help with lclogitHello Everyone, I have conducted a discrete choice experiment in multiple countries. Each participa…
Return Calculation for Panel DataDear Statalists, I am trying to calculate monthly returns for specific firms and would like to know …
Rank Variable for Income, then further for regionHi, I am fairly new to this forum so please excuse me if I do not follow some guidelines I am not aw…
Regress individual and collective indicatorsHello STATA community! In my research I analyse how economy shapes public opinion (of social classes…
Subscribe to:
Post Comments (Atom)
0 Response to Multiplication using gen
Post a Comment