Hi all,
I am experiencing something puzzling.
I have two frames (frame1 and frame2), each indexed by a variable index. frame1 contains two other variables, dummy1 and dummy2. The two dummies each are labels with value labels mapping 1 to "Yes" and 0 to "No". The value labels are named differently.
When I use frlink to access the dummy variables from frame1 in frame2, only one of the value labels persists, and it is applied to both variables. This behavior does not occur with the traditional merge command. Does anyone know why this occurs with frlink?
The below code suffices to demonstrate what I mean, and the screengrab shows that the value labels are changed.

I am experiencing something puzzling.
I have two frames (frame1 and frame2), each indexed by a variable index. frame1 contains two other variables, dummy1 and dummy2. The two dummies each are labels with value labels mapping 1 to "Yes" and 0 to "No". The value labels are named differently.
When I use frlink to access the dummy variables from frame1 in frame2, only one of the value labels persists, and it is applied to both variables. This behavior does not occur with the traditional merge command. Does anyone know why this occurs with frlink?
The below code suffices to demonstrate what I mean, and the screengrab shows that the value labels are changed.
Code:
mkf frame1 frame frame1 { set obs 3 gen byte index = _n gen byte dummy1 = index > 1 gen byte dummy2 = index < 3 label define dummy1label 0 "No" 1 "Yes" label define dummy2label 0 "No" 1 "Yes" label values dummy1 dummy1label label values dummy2 dummy2label describe } mkf frame2 frame frame2 { set obs 3 gen byte index = _n frlink 1:1 index, frame(frame1) frget dummy1 dummy2, from(frame1) describe }
Comment