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
Difference in Difference Model: Refine the definition of treatment and control groupHi all, I try to establish a standard DiD model with fixed effect to investigate the impacts of a m…
Comparing string values within the same variableHi folks, I have a database with +70k observations. I am looking at school principals turnover of +…
Plotting Different Regression Values in One Graph with CoefplotHello there, I'm currently running a series of regressions using US State data. So far, I've create…
How to create new variables from date variables?Hi, I am working with a medicinal tests dataset. Three tests can be prescribed. The doctor can pres…
Weak instrument test for RE estimationHello! I was wondering if anyone could provide me with some guidance as to what weak instrument test…
Subscribe to:
Post Comments (Atom)
0 Response to using function cond
Post a Comment