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;
    proc freq data=class noprint;
    table age*height*weight/out=by_height(keep=age height weight);
    proc freq data=by_height noprint;
    table age*height/out=by_age(keep=age height count);
    data multi;
    set by_age;
    if count>1;
    Bob Miller, Jun 10, 2009
    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.