Hi Folks:
I'd like to impute data where id1name='D'. I'd like to bring current n=21 to a total of n =120 keeping the frequency distribution of n by idname. I tried it manually by using proc freq on the 'n' and multipling 120 by the resulting percent from proc freq and allocated those numbers to idname. I will have to do the same thing for the rest of id1name such as 'C' too.
Could you please help accomplish this imputation task more efficiently than manual?
data have;
input n id1name $ idname $;
cards;
0 D Buk
4 D Dalseo
1 D Dalseong
1 D Dong
3 D Jung
8 D Nam
2 D Seo
2 D Suseong
5 C Hart
6 C Sous
;