Hi
I'd like to have a sas table with the median output for domains with proc surveymeans.
If I do this for the mean it works perfect like in the exemple:
You can get a list of the output object using Ods trace. Example:(don't forget to turn off or your log gets busy)
ods trace on; proc surveymeans data=sashelp.cars median; var MSRP; domain Make; run; ods trace off;
Which shows:
Output Added: ------------- Name: Summary Label: Data Summary Template: Stat.SurveyMeans.Factoid Path: Surveymeans.Summary ------------- Output Added: ------------- Name: Statistics Label: Statistics Template: Stat.SurveyMeans.Statistics Path: Surveymeans.Statistics ------------- Output Added: ------------- Name: Quantiles Label: Quantiles Template: Stat.SurveyMeans.Quantiles Path: Surveymeans.Quantiles ------------- Output Added: ------------- Name: DomainQuantiles Label: Quantiles for Make Domains Template: Stat.SurveyMeans.DomainQuantiles Path: Surveymeans.DomainAnalysis.DomainQuantiles -------------
So it looks like you want an ODS output for Domainquantiles.
You can get a list of the output object using Ods trace. Example:(don't forget to turn off or your log gets busy)
ods trace on; proc surveymeans data=sashelp.cars median; var MSRP; domain Make; run; ods trace off;
Which shows:
Output Added: ------------- Name: Summary Label: Data Summary Template: Stat.SurveyMeans.Factoid Path: Surveymeans.Summary ------------- Output Added: ------------- Name: Statistics Label: Statistics Template: Stat.SurveyMeans.Statistics Path: Surveymeans.Statistics ------------- Output Added: ------------- Name: Quantiles Label: Quantiles Template: Stat.SurveyMeans.Quantiles Path: Surveymeans.Quantiles ------------- Output Added: ------------- Name: DomainQuantiles Label: Quantiles for Make Domains Template: Stat.SurveyMeans.DomainQuantiles Path: Surveymeans.DomainAnalysis.DomainQuantiles -------------
So it looks like you want an ODS output for Domainquantiles.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.