Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Programming
- /
- SAS Procedures
- /
- how to create summary statistic for key variables

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 12-07-2019 09:07 PM
(611 views)

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

15 REPLIES 15

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

try

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

Thanks,

Jag

Jag

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Could you help me how to do this?

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

'/courses/d29c2855ba27fe300/coke'

- Create summary statistics for key variables (coke, pr_pepsi, pr_coke, disp_pepsi, disp_coke, pratio
- Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

Jag

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

Jag

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

ok could you please share the screen shot of the dataset

Thanks,

Jag

Jag

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Thank you , could you also send the screenshot of the log with errors

Thanks,

Jag

Jag

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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;

like below

proc means data=coke noprint;

var coke pr_pepsi pr_coke;

output out=want;

run;

Thanks,

Jag

Jag

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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/

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

Thanks,

Jag

Jag

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Thank you so much, you are very helpful.

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. **

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.