Merging CohortProfile & pTarget SC3

Aless
Wed, 28 Aug 2024 13:00:30 +0000
NEPS

Dear FDZ team,

I am a new user of NEPS data and am still working to understand it fully. Please apologize if my questions seem trivial.

I would like to use and merge different SC3 data files in Stata: CohortProfile, pTartget, pParent, xTargetCompetencies.

Here is what I did so far:

Loading CohortProfile data and recode the missing values using nepsmiss _all

Loading the pTarget data, recode the missing values, and keep only the variables I am interested for

Trying to merge the two datasets, with CohortProfile as the master file, with this command: merge 1:1 ID_t wave using pTarget, nogen

However, when running this piece of code, I get a message saying that
variables ID_t and wave do not uniquely identify the observations.
The same occurs when I run isid ID_t wave on the pTarget data… As it is specified in the documentation and in the merging matrix that ID_t and wave are sufficient for identification, I do not understand… Any recommandation or thoughts about what I might be doing wrong?

And a second question:
If I get it correctly, the merging is going to be 1:1 for CohortProfile, pTarget, and pParent, but then xTargetCompetencies is in wide format. So should I…

First covert it to long format (as sometimes recomanded in the tutorials), then merge it to the other files with 1:1 merging

merge it to the other files with a m:1 merging directly?

Thank you in advance for your assistance.

Best regards,

Alessandra

3 Beiträge - 2 Teilnehmer