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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.