skip to main | skip to sidebar

SAS it up

getting down with SAS.

Sunday, February 11, 2007

create a categorical variable in one fell swoop

categorize a variable with "lazy elegance"

if age ne . then agecat= int(iage/5-1);
Posted by eh at 1:08 PM
Labels: categorize, format

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (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)
    • ▼  February (4)
      • quartiles (or x-tiles) for the lazy
      • create a categorical variable in one fell swoop
      • make a good looking histogram
      • transpose data