How do I import a data (excel) and do a t test
You can use PROC IMPORT to import the Excel file.
You can use PROC TTEST to do a t-test.
If the data is imported from Excel it is already in a SAS-library.
Maybe it is in the WORK library.
The WORK library is temporary (it disappears when you sign out of your SAS-session), meaning you will have to import your Excel data again next time.
If you import your Excel data in a permanent library or you copy your data from WORK library to a permanent library after import, you only need to import once.
Hope you can make it work,
Koen
I STRONGLY suggest that you work through the free online Programming 1 course, where the basics of SAS are dealt with.
Hello,
I fully agree with @Kurt_Bremser .
You can start here :
https://www.sas.com/en_be/training/offers/free-training.html
It's the SAS website for the SAS Belgium-Luxembourg subsidiary / branch of SAS, but that does not matter of course.
Koen
And if it has escaped your attention: this whole website deals with one thing only, namely the SAS software. Therefore, using just "SAS" as a subject line is about as non-descript as possible, and does not shine a bright light on either your mental powers or your willingness to spend some effort. As does the terseness of your whole post.
Please correct that by using the Edit feature.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.