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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.