BookmarkSubscribeRSS Feed
0 Likes

To whom it may concert,

 

I am running an Example 87.11 Analysis of Clustered Data, and data listed as below:

data Blind;

   input ID Time Status dty trt @@;

   Type= put(dty, type.);

   Treat= put(trt, Rx.);

   datalines;

   5 46.23 0 1 1    5 46.23 0 1 0   14 42.50 0 0 1   14 31.30 1 0 0

  16 42.27 0 0 1   16 42.27 0 0 0   25 20.60 0 0 1   25 20.60 0 0 0

  29 38.77 0 0 1   29  0.30 1 0 0   46 65.23 0 0 1   46 54.27 1 0 0

 

   ... more lines ...  

 

1705  8.00 0 0 1 1705  8.00 0 0 0 1717 51.60 0 1 1 1717 42.33 1 1 0

1727 49.97 0 1 1 1727  2.90 1 1 0 1746 45.90 0 0 1 1746  1.43 1 0 0

1749 41.93 0 1 1 1749 41.93 0 1 0

;

 

But it is very helpful for the users to run the codes on their own to compare the  results with SAS help, so can you include the whole data in all the examples instead of partial data only?

 

I am using SAS v9.4

 

Thanks

 

Wei

8 Comments
paulkaefer
Lapis Lazuli | Level 10

Small samples are preferable for posts, but you could include the full data in an attachment. Either the full code file or, better, a .csv or .sas7bdat file.

data_null__
Jade | Level 19

All example programs are found in the SAMPLE folder for the product.  For example for SAS/STAT on my system the example you seek is located here.

 

C:\SAS\SASHome\SASFoundation\9.4\stat\sample\phrex11.sas

 

I always forget about this and do not see a reference to it in the documentation.

ChrisHemedinger
Community Manager

The same sample is on support.sas.com, along with all of the other SAS/STAT examples.  You can find the full list of them here.

 

And if you refer to the most recent documentation at documentation.sas.com, you'll find direct links to the full samples.

 

sample.png

Reeza
Super User

When you're looking at the documentation, make sure you're looking at the latest version. A lot of these type of user friendly suggestions have been added to the newer versions, but SAS 9.2 documentation is almost 10 years out of date. 

wzhao
Fluorite | Level 6
Great!



I am glad that I had asked.

Good to know that.



Thanks


ChrisHemedinger
Community Manager
Status changed to: Suggestion Implemented
wzhao
Fluorite | Level 6
Ok.

Thanks for the tips.


wzhao
Fluorite | Level 6
Thanks