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.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.