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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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