DATA Step, Macro, Functions and more

Outputing when the domain frequency is 0 in proc surveymeans

Reply
Occasional Contributor
Posts: 15

Outputing when the domain frequency is 0 in proc surveymeans

 

I am running surveymeans and am outputing the results for all 8 states. However, because there are no observations for my domain in Tas, there is no line in the output for it. is there a way in surveymeans where if there is no observations in the domain, then the procdure still outputs for that state (TAS), but just has a 0 in the domain frequency?

 

 

 

 domain_frequencyFrequency
SA4036
ACT55
NT200161
NSW240191
WA180163
VIC6460
QLD344319
Regular Contributor
Posts: 228

Re: Outputing when the domain frequency is 0 in proc surveymeans

Please try NOSPARSE in your proc surveymeans statement.
Ask a Question
Discussion stats
  • 1 reply
  • 90 views
  • 0 likes
  • 2 in conversation