BookmarkSubscribeRSS Feed
colestech23
Calcite | Level 5

proc ttest data = stock_price alpha = .05;
var price = 2.58; *would it be 2.58 if task was 2 in the data ? ; 
run;

1 REPLY 1
ballardw
Super User

What are you attempting to do? Determine if the mean price is 2.58? Is different from 2.58?

You could test a null hypothesis that the mean is a given value with the H0= option on proc ttest statement:

Proc ttest data=stock_price alpha=.05 H0=2.58;

 

 

Task?  What is task?

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1368 views
  • 0 likes
  • 2 in conversation