Does anyone know how to use the rii command in order to whittle down the number of observations in a dataset? I merged a main file, summary extract file and weights and the number of obs is now at 28,888 but there are about 5 times more. The correct number of observations is 5,777. How do I incorporate using the rii into the codes in order to get the 5777 as final n, please?

Thank you.