Hi All,
It is my first time in this forum and I'm hoping you will be able to assist me.
My study is on Adolescence Obesity and I have huge data that consists of everyone including adults. I would like to generate a variable called Mother_IBM. So the condition is that the output should be female (numlabel 2) and have No_of_kids>0
Thanks
Related Posts with Creating an IF or Conditional command
Summing dollar amount for each unique id for each yearstr50 year str27 state str29 district long regno str110 donortype str109 double amount "2009-2010" "…
How to export descriptive statistics (-desctable- not working)Hello, I am trying to find the best Stata command to export descriptive information into an excel t…
Wrapping up twoway plots using loopHi, Using the codes below, I could nicely plot my data and retain my plots of interest using gr comb…
Issues with loop used to drop observationsHello, everyone, The data that I'm using has been delivered to us with duplicated patient IDs. Thes…
Calculate the difference of the value of one observation with the average value for observations in other groupsHi everyone, I have a question of how to use stata to calculate the difference of the value of one …
Subscribe to:
Post Comments (Atom)
0 Response to Creating an IF or Conditional command
Post a Comment