Project

General

Profile

Support #1839

Combining individual level files across waves with different variables into a long format.

Added by Ingrid Storm about 1 year ago. Updated about 1 year ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
-
Start date:
01/12/2023
% Done:

50%


Description

I am trying to follow the suggested syntax for appending individual level files across waves into a long format. However I wish to retain some variables that are not available in all the waves.

When I try to use the syntax dofile available on the website (MERGING INDIVIDUAL FILES ACROSS WAVES INTO LONG FORMAT) I get error messages when it encounters variables that are only available in some waves (e.g. "variable a_simrace not found").

I noticed on the moodle course a command called "isvar" was proposed as a solution. However, when I try this I also get an error message, saying that "the command isvar is not recognised" (I am using Stata version 17).

What do you propose?

Thank you very much for your help

Also available in: Atom PDF