Help using Base SAS procedures

reading in data ...

Reply
Occasional Contributor
Posts: 5

reading in data ...

Help!

Respected Advisor
Posts: 3,777

Re: reading in data ...

Your example data does not exactly go with your description but perhaps this will get the discussion started.


data soda;
   infile cards missover;
  
input soda fizz @;
   do while(not missing(fizz));
      output;
     
input fizz @;
      end;
  
cards;
1  2.0  2.8  3.3  3.2  4.4  3.6  1.9  3.3  2.8  1.1 
2  3.5  2.8  3.2  3.5  2.3  2.4  2.0  1.6
3  3.3  3.6  2.6  3.1  3.2  3.3  2.9  3.4  3.2  3.2
4  3.2  3.3  3.2  2.9  3.3  2.5  2.6  2.8
5  2.6  2.6  2.9  2.0  2.0  2.1
;;;;
   run;


proc print;
  
run;


proc glm;
  
class soda;
   model fizz = soda;
   run;
Ask a Question
Discussion stats
  • 1 reply
  • 146 views
  • 1 like
  • 2 in conversation