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
Getting exact numbers when extracting p-values from ttestsHello, I wrote code that uses local macros and matrices to extract p-values from many ttests, and o…
Post estimation with endogenous switching regressionsDear STATALIST, I am using an endogenous switching regression model to understand how selection aff…
How to modify user-written ado file name without running into loading errorHi all, I've been working on a user-written ado file that with its current name works perfectly fin…
removing the first character of a string variable if it is zeroHi everyone, How can I remove the first character(s) of values if they are zero? For example, I woul…
New variable: link individuals to their respective householdsHi guys, I have an assignment which consists on the following. I merged two datasets. One contained…
Subscribe to:
Post Comments (Atom)
0 Response to new reshape issue
Post a Comment