Dear All,
it might be a stupid question, but I am stuck. Suppose I have the following data:
I would like to replicate the above set of countries to generate 10 additional observations for 1952, say:
How can I do it?
Thanks in advance for your help.
Dario
it might be a stupid question, but I am stuck. Suppose I have the following data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str3 countrycode str34 country double year "ALB" "Albania" 1950 "DZA" "Algeria" 1950 "AGO" "Angola" 1950 "AIA" "Anguilla" 1950 "ATG" "Antigua and Barbuda" 1950 "ARG" "Argentina" 1950 "ARM" "Armenia" 1950 "ABW" "Aruba" 1950 "AUS" "Australia" 1950 "AUT" "Austria" 1950 "ALB" "Albania" 1951 "DZA" "Algeria" 1951 "AGO" "Angola" 1951 "AIA" "Anguilla" 1951 "ATG" "Antigua and Barbuda" 1951 "ARG" "Argentina" 1951 "ARM" "Armenia" 1951 "ABW" "Aruba" 1951 "AUS" "Australia" 1951 "AUT" "Austria" 1951 end
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str3 countrycode str34 country double year "ALB" "Albania" 1950 "DZA" "Algeria" 1950 "AGO" "Angola" 1950 "AIA" "Anguilla" 1950 "ATG" "Antigua and Barbuda" 1950 "ARG" "Argentina" 1950 "ARM" "Armenia" 1950 "ABW" "Aruba" 1950 "AUS" "Australia" 1950 "AUT" "Austria" 1950 "ALB" "Albania" 1951 "DZA" "Algeria" 1951 "AGO" "Angola" 1951 "AIA" "Anguilla" 1951 "ATG" "Antigua and Barbuda" 1951 "ARG" "Argentina" 1951 "ARM" "Armenia" 1951 "ABW" "Aruba" 1951 "AUS" "Australia" 1951 "AUT" "Austria" 1951 "ALB" "Albania" 1952 "DZA" "Algeria" 1952 "AGO" "Angola" 1952 "AIA" "Anguilla" 1952 "ATG" "Antigua and Barbuda" 1952 "ARG" "Argentina" 1952 "ARM" "Armenia" 1952 "ABW" "Aruba" 1952 "AUS" "Australia" 1952 "AUT" "Austria" 1952 end
Thanks in advance for your help.
Dario
Comment