hello !
i want to create a new variable that's equal to value of year 1960 for all countries and years;
i used the following code but it return missing for others years except 1960:
bys origin (destination year): gen pop_i_1960 = (cond(year==1960,pop_de,.))
Related Posts with using function cond
tabulate multiple variables with percentageHi, I need make table of age, sex, salary, hh_icnome by occupation in one table with only % figures…
using macro variables in loopDear all, I am writing to ask for help in using macro variables in loops. My code is something as …
Remove firms if fiscal year-end changesHello everyone, I have a question: for my research it's is relevant that there are no fiscal years-…
How to identify the "case" corresponding to the min value obtain from summary statisitcs?Hello I have run the following summary stats and obtained the following: . . sum a_buy_gas_elec_ap…
Two-Sample KS testGood day, I have a sample of European countries and I'm analyzing bank profitability for EU banks w…
Subscribe to:
Post Comments (Atom)
0 Response to using function cond
Post a Comment