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
Comparing string variable namesI have a variable named S_Kx, S_Jx S_Yx, S_Sx I want to nix all variables that dont' have the same …
Marginal effect manually for IV-TobitDear Statalist I have gone through Tobit model in very a detailed way but reached a dead-end in try…
matching variables in the varlist with parameters is needed in 'ln'?I want to estimate equation below with 'ln' command and the program. But it returns error message 19…
Taking a log of Ratio VariableHi, I am conducting a panel data analysis. My dependent variable is a ratio which defines the busin…
Running sum by a group based on another group and time.Hi, This is the first time I am posting on StatList. I have a time series data, in which I have va…
Subscribe to:
Post Comments (Atom)
0 Response to using function cond
Post a Comment