Sorry, this should be straightforward but I can't figure it out even after trying and using the manual. I was able to collapse the data I asked about before but I made a mistake for one country that has two different values in the data set (and the one I want to merge with it). Italy is Italy/Sardinia for observation number 90 and Italy for observation 206. I need to replace the observations with a score of 0 in observation 90 with the values of the variables for observation 216. I tried a replace in a loop that included:
replace gwno1901[_216] if *[_90]==0
but got:
weights not allowed
Related Posts with new reshape issue
Help generating region variableDear all, I am using Stata 16, on mac. I want to create a region variable based on my dummy variabl…
Need Help!Hey guys, currently working on a final project for my capstone course in college. I am studying the …
generating a variable that computes conditional expectationHi, I have two variables of height and weight, I need the command that generates a third variable t…
Calculating time-variant Herfindahl index (HHI)Dear all, I am looking to calculate the Herfindahl index over the variable "industry" by group "ID"…
Help!-Using Diff in Diff estimates with Twin Studies to control for heritabilityOk so I know nothing about econometrics or research methods but I have this project for my Humanomic…
Subscribe to:
Post Comments (Atom)
0 Response to new reshape issue
Post a Comment