Multiple heights within age

Discussion in 'SAS (Statistical Analysis Software)' started by Bob Miller, Jun 10, 2009.

  1. Bob Miller

    Bob Miller Guest

    I'm trying to determine which ages have multiple heights and the counts
    thereof. My program is below. Is this the best way to do this? Thanks.
    Bob Miller

    data class;
    set sashelp.class;
    height=round(height,10);
    weight=round(weight,10);
    run;
    proc freq data=class noprint;
    table age*height*weight/out=by_height(keep=age height weight);
    quit;
    proc freq data=by_height noprint;
    table age*height/out=by_age(keep=age height count);
    quit;
    data multi;
    set by_age;
    if count>1;
    run;
     
    Bob Miller, Jun 10, 2009
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.