~ubuntu-branches/ubuntu/raring/ess/raring-proposed

« back to all changes in this revision

Viewing changes to doc/jcgs/philasug.sas

  • Committer: Package Import Robot
  • Author(s): Dirk Eddelbuettel
  • Date: 2012-05-09 08:00:38 UTC
  • mfrom: (1.2.23)
  • Revision ID: package-import@ubuntu.com-20120509080038-7an3nhbtgaj02a17
Tags: 12.04-1-1
New upstream patch version released today

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
options linesize=74;
2
 
libname regr 'd:/rmh/ESS/philasug/regr';
3
 
 
4
 
filename grafout "regr.ps";
5
 
 
6
 
goptions device=ps gsfname=grafout gsfmode=replace gaccess=sasgastd
7
 
            csymbol=black;  /* csymbol makes 'symbol v=' work correctly */
8
 
 
9
 
data regr.fat;
10
 
    infile 'd:/rmh/hh/datasets/fat.data' firstobs=2;
11
 
    input bodyfat abdomin biceps forearm wrist;
12
 
run;
13
 
 
14
 
%include 'd:/stat/Data/friendly/macros/scatmat.sas' ;
15
 
%scatmat(data=regr.fat,
16
 
    var= bodyfat abdomin biceps forearm wrist,
17
 
    gout=regr.gseg);
18
 
run;
19
 
 
20
 
proc glm data=regr.fat;
21
 
    model bodyfat = abdomin;
22
 
    output out=regr.fat2 p=bodyfathat ;
23
 
run;
24
 
 
25
 
 
26
 
proc gplot data=regr.fat2;
27
 
    symbol1 v=dot ;
28
 
    symbol2 v=point i=rl;
29
 
    plot bodyfat   * abdomin = 1
30
 
        bodyfathat * abdomin = 2 / overlay;
31
 
run;