skip to main | skip to sidebar

SAS it up

getting down with SAS.

Wednesday, May 30, 2007

code for transforming data from multivariate format to the univariate format

data data;
infile 'c:\myfiles\testfile.dat';
input id y0 y1 y2 y3;
y=y0 trt=0; output;
y=y1 trt=1; output;
y=y2 trt=2; output;
drop y0-y2;
run;
Posted by eh at 2:22 PM No comments:
Labels: format, mixed models
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

My Blog List

  • SAS on UNIX@hsph
    direct filename with path to a file
    14 years ago
  • SAS Tips | Published Tips

Labels

  • categorize
  • format
  • histogram
  • missing data
  • mixed models
  • plot
  • R
  • recode

Blog Archive

  • ►  2009 (1)
    • ►  July (1)
  • ►  2008 (2)
    • ►  July (1)
    • ►  March (1)
  • ▼  2007 (7)
    • ►  July (1)
    • ►  June (1)
    • ▼  May (1)
      • code for transforming data from multivariate forma...
    • ►  February (4)