I want to create a new variable using these two sets and I used the following code:
Code:
gen child1 = . forval i = 01(1)20{ replace child1 = b2_`i' if bord_`i' == 1 }
But I keep getting the following error message
Code:
b2_1 ambiguous abbreviation r(111);
0 Response to forval returning error stating ambiguous abbreviation for variables b_01 and b_11
Post a Comment