Populate a variable in the ID section using a lower sub variable

Discussions about editing and cleaning data
Post Reply
beezi
Posts: 1
Joined: June 10th, 2024, 2:25 am

Populate a variable in the ID section using a lower sub variable

Post by beezi »

PROC IDS0_EDT
impute(P_ID, N_G_LN)
I want the to populate the variable P_ID which is in ID section with values from a subitem which is N_G_LN ;
sherrell
Posts: 406
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Populate a variable in the ID section using a lower sub variable

Post by sherrell »

Are you entering non-ID values before the ID values are entered? This isn't a great practice.

What did you have in mind when you say you wish to populate a variable with values from a subitem? The impute function merely copies the value over; the only "extra" you get by using the impute function is to get statistics on the number of times the value changes via the impute function, etc. It would help if you could give more detail about what you're trying to accomplish.

Sherrell
Post Reply