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
Summary Statistics for Categorical VariablesDear Statalist, I used the following command Code: sum influenced ibn.size and was wondering if …
could not calculate numerical derivatives -- flat or discontinuous region encounteredDear all, I am trying to run the stochastic frontier model based on Battese and Coelli (1995), whic…
Pooled Panel or Cross Sectional DataGood Morning I have a query regarding a data set I am handling. I am trying to see the out-migration…
Creating two month intervalsHello, I would like to create a date variable that represent successive two month intervals - e.g., …
Pooled Panel or Cross Sectional DataGood Morning I have a query regarding a data set I am handling. I am trying to see the out migration…
Subscribe to:
Post Comments (Atom)
0 Response to using function cond
Post a Comment