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: 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!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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