Hello
I need to know how many companies in my sample , what the code that i can use ?
because my data is obtained from database in the meantime i removed some companies , missing value as well , so i need to know the final statistic.
Use the code provided, replace company with variable name, and have with your dataset - nethier of which you have mentioned, nor provided any test data in the form of a datastep, nor what the output should look like, so I can do nothing further.
No idea what the question is here? Do you have a dataset with a variable with company name in, all standardised? If so then:
proc sql; select count(distinct company) from have; quit;
Will print count of distinct company variable from dataset have, to log. Just guessing though as you have provide no information in your question!!
Use the code provided, replace company with variable name, and have with your dataset - nethier of which you have mentioned, nor provided any test data in the form of a datastep, nor what the output should look like, so I can do nothing further.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.