BookmarkSubscribeRSS Feed
dunns3
Calcite | Level 5

Please help me to create this I am new data=coke

15 REPLIES 15
Jagadishkatam
Amethyst | Level 16

try

 

proc means data=sashelp.class n mean median std max min;
var weight height;
run;

Thanks,
Jag
dunns3
Calcite | Level 5

Could you help me how to do this?

  1. Open the data file and examine the contents on key variables (coke, pr_pepsi, pr_coke, disp_pepsi, disp_coke, pratio)

'/courses/d29c2855ba27fe300/coke'

  1. Create summary statistics for key variables (coke, pr_pepsi, pr_coke, disp_pepsi, disp_coke, pratio
  2. Thank you!
Jagadishkatam
Amethyst | Level 16

hope you have a sas dataset with the data and the key variables are all numeric , then you can try the below code

 

proc means data=coke noprint;
var coke pr_pepsi pr_coke disp_pepsi disp_coke pratio;
output out=want;
run;
Thanks,
Jag
dunns3
Calcite | Level 5

Yes, I have all the data I just don't know how to do it because I am new with SAS.

 

Thank you so much!

Jagadishkatam
Amethyst | Level 16
Could you check if you have the data in SAS dataset sas7bdat. extension, or you are trying to pull the data into sas from any other file like excel.
Thanks,
Jag
dunns3
Calcite | Level 5

Yes, I have it on the sets of rows there numeric for pratio, coke and pepsi, I'm using SAS program and I have all these questions but I don't have the code it's hard to follow the textbook and SAS confuses me because when I try to search it giving me hundreds of answer.

Jagadishkatam
Amethyst | Level 16
ok could you please share the screen shot of the dataset
Thanks,
Jag
Jagadishkatam
Amethyst | Level 16
Thank you , could you also send the screenshot of the log with errors
Thanks,
Jag
Jagadishkatam
Amethyst | Level 16
I believe you should use the dataset coke instead of cokeout

like below

proc means data=coke noprint;
var coke pr_pepsi pr_coke;
output out=want;
run;
Thanks,
Jag
dunns3
Calcite | Level 5

do you know how to how to create data set containing the parameter estimates of the regression?

 

Thank you!

Jagadishkatam
Amethyst | Level 16
Please check this link below for details, it has the code , you can try this once if you need more details please post

https://stats.idre.ucla.edu/sas/output/regression-analysis/

Thanks,
Jag
dunns3
Calcite | Level 5

Thank you so much, you are very helpful.Smiley Happy

SAS Innovate 2025: Register Now

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!

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 15 replies
  • 1950 views
  • 0 likes
  • 2 in conversation