Hi ,
I have 4 core variables which I always need to include and 80 potential variables.
I want to check if there are more than 200 ids remaining if I am doing the loop with all the 10 variables
I am using the following loop to clean the data up like I want it:
foreach x in 1 2 3 4 5 6 7 8 9 10 {
drop if missing(`x')
}
Lets say 1-4 are core variables and 5-10 are potential variables (out of 80 possible)
How can I extend this loop to go though potential combinations of 1 2 3 4 x x x x x x (x representing a potential variable of the 80)
I hope sombody can help me with this issue
Best,
JB
I have 4 core variables which I always need to include and 80 potential variables.
I want to check if there are more than 200 ids remaining if I am doing the loop with all the 10 variables
I am using the following loop to clean the data up like I want it:
foreach x in 1 2 3 4 5 6 7 8 9 10 {
drop if missing(`x')
}
Lets say 1-4 are core variables and 5-10 are potential variables (out of 80 possible)
How can I extend this loop to go though potential combinations of 1 2 3 4 x x x x x x (x representing a potential variable of the 80)
I hope sombody can help me with this issue
Best,
JB
Comment