Hi everyone,
I have the following issue. In one folder, I have stored different xlsx files. Each files corresponds to an identifier and it is repeated four times. Below you have a screenshoot, just to give you a snapshot:
Array
As you can see, each identifier is repeated 4 items with label _1 _2 _3 _4.
What I need to do with Stata is to list each unique idenfitier that starts with "GB" letters, then I have to copy and paste these identifiers for another type of work. The critical point is that, in order to be included in my sample, each identifier must have all _1 _2 _3 _4 files. If, for instance, one identifier is missing _2 or _1, it has not to be included in my list.
I'm wondering whether this can be feasible and effeciently done with STATA.
Would you be so kind to help me?
Many thanks in advance
Related Posts with Searching distinct identifier in a folder
Merging dataHello, I am trying to merge variables from the original Demographic and Health surveys (DHS) with t…
Replacing missing values in a panel dataDear All, hope you are all safe and in good health. Kindly I have balanced panel data with missing…
Blinder-Oaxaca decomposition for probit modelHello, I have assessed online materials available for the decomposition of both linear and non-line…
Spell-type data for Cox regressionHello, dear users of the Stata program. Now I'm conducting a reserach on duration of unemployment. I…
Never allow Stata to replace datasetI have ingrained in my muscle memory to press "ctrl+s" every time before I run a .do file in case St…
Subscribe to:
Post Comments (Atom)
0 Response to Searching distinct identifier in a folder
Post a Comment