I have a dataset of 2,933 patients and 1,136 biomarkers.
I want to know how to create a loop command since the data set is huge to drop variables that contain more than 5% missing's values ( variables are listed in the column, and patients' codes are listed in the rows )
I used the command below
missings report, percent sort
but how to drop variable contain beyond the 5%
I hope someone can help. note i use stata 17
Thanks
I tried Google and youtube, but I could not figure it
I want to know how to create a loop command since the data set is huge to drop variables that contain more than 5% missing's values ( variables are listed in the column, and patients' codes are listed in the rows )
I used the command below
missings report, percent sort
but how to drop variable contain beyond the 5%
I hope someone can help. note i use stata 17
Thanks
I tried Google and youtube, but I could not figure it
Comment