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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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