BookmarkSubscribeRSS Feed
Sammie
Calcite | Level 5

How do I import a data (excel) and do a t test

6 REPLIES 6
PaigeMiller
Diamond | Level 26

You can use PROC IMPORT to import the Excel file.

 

You can use PROC TTEST to do a t-test.

--
Paige Miller
Sammie
Calcite | Level 5
Once I import the data. Do I need to save it under lib name? Not sure if I am making sense
sbxkoenk
SAS Super FREQ

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

sbxkoenk
SAS Super FREQ

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

Kurt_Bremser
Super User

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.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 6 replies
  • 894 views
  • 3 likes
  • 4 in conversation