BookmarkSubscribeRSS Feed
anilgvdbm
Quartz | Level 8

Dear All,

Here my problem is i need percentiles of weight and age_months for 0-60 months. so here i need results like weight for Age. in graph X axies age_months and Y axies weight.

For this i tried

proc univariate data=child766;

class Age_months sex;

var weight_kg;

output out=perplts pctlpre=_Pwt P_Age p

pctlpts=6 12 24 36 48 60 ;run;

please suggest me how to go with this??/

Regards,

Anil

6 REPLIES 6
sudi
Calcite | Level 5

can you please provide the dataset which you are reffering to.

djmangen
Obsidian | Level 7

Try this:

proc univariate data=child766;

class Age_months sex;

var weight_kg;

output out=perplts pctlpre= Pwt_

pctlpts=6 12 24 36 48 60 ;

run;

I suspect that you were specifying too many prefixes.

SteveDenham
Jade | Level 19

What is up with the weird pctlpts values?  This is going to give the sixth, twelfth, etc. percentile of all of the data within each month.

And if my hunch is correct, the 60 corresponds to 1he 100th percentile or the maximum.  I would ask the original poster what percentiles of the data they are interested in at each month.

Steve Denham

anilgvdbm
Quartz | Level 8

Dear SteveDenham,

Here i am looking for child growth rate  from the age and weight so i need percentiles of each year child's weight. because i cont calculate bmi for child so the from the percentiles i can separate the under weight and normal obese.

Thank you ..

regards,

Anil

Ksharp
Super User

pctlpts=1 to 100 by 1 ; 

Xia Keshan

SteveDenham
Jade | Level 19

Follow 's recommendation, and get all of the percentiles for each sex and month.  Then you can separate more easily.

However, I think you may want to look at the documentation for PROC QUANTREG, if you are looking for predictors of the various quantiles/percentiles.

Steve Denham

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1489 views
  • 4 likes
  • 5 in conversation