Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • World Bank panel data

    Hi all, I am working on World Bank Enterprise survey and am having issues in panel data. I can't find the unique identifier in this panel data. here is a sample.
    Code:
     * Example generated by -dataex-. To install: ssc install dataex clear input float(idstd year) long CompanyID . 2013 50002 . 2013 50003 . 2013 50006 . 2013 50012 . 2013 50014 . 2013 50020 . 2013 50022 . 2013 50024 . 2013 50027 . 2013 50030 . 2013 50032 . 2013 50037 . 2013 50044 . 2013 50053 . 2013 50059 . 2013 50060 . 2013 50067 . 2013 50071 . 2013 50072 . 2013 50076 . 2013 50077 . 2013 50078 . 2013 50079 . 2013 50080 . 2013 50082 . 2013 50083 . 2013 50085 . 2013 50089 . 2013 50094 . 2013 50100 . 2013 50108 . 2013 50115 . 2013 50120 . 2013 50122 . 2013 50125 . 2013 50129 . 2013 50130 . 2013 50131 . 2013 50132 . 2013 50133 . 2013 50134 . 2013 50135 . 2013 50138 . 2013 50142 . 2013 50149 . 2013 50152 . 2013 50154 . 2013 50155 . 2013 50160 . 2013 50162 . 2013 50165 . 2013 50169 . 2013 50175 . 2013 50181 . 2013 50186 . 2013 50189 . 2013 50191 . 2013 50192 . 2013 50197 . 2013 50206 . 2013 50209 . 2013 50210 . 2013 50212 . 2013 50214 . 2013 50218 . 2013 50220 . 2013 50225 . 2013 50230 . 2013 50240 . 2013 50242 . 2013 50243 . 2013 50247 . 2013 50251 . 2013 50252 . 2013 50253 . 2013 50256 . 2013 50257 . 2013 50264 . 2013 50265 . 2013 50266 . 2013 50271 . 2013 50272 . 2013 50276 . 2013 50281 . 2013 50282 . 2013 50283 . 2013 50285 . 2013 50287 . 2013 50297 . 2013 50305 . 2013 50306 . 2013 50307 . 2013 50308 . 2013 50309 . 2013 50311 . 2013 50316 . 2013 50317 . 2013 50318 . 2013 50319 . 2013 50320 end
    ------------------ copy up to and including the previous line ------------------ Listed 100 out of 908 observations Use the count() option to list more

  • #2
    It seems the dataex output wasn't copied as it should have.
    This happens sometimes, in my experience when the CODE opening and closing blocks are not on a separate line.

    A fixed version of some of the data:
    Code:
    * Example generated by -dataex-. To install: ssc install dataex 
    clear
    input float(idstd year) long CompanyID 
    . 2013 50002 
    . 2013 50003 
    . 2013 50006 
    . 2013 50012
    . 2013 50014 
    . 2013 50020 
    . 2013 50022
    end
    My best guess: (CompanyID year) would be the unique identifier here.
    It seems in your data example, the year is always 2013 and idstd is always missing. I'm guessing in your whole dataset you would have other years as well, so that you would need both CompanyID and year to create unique identifiers.

    Comment

    Working...
    X