Help using Base SAS procedures

Survey Data Analysis: Proc Freq or Proc Surveyfreq?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

Survey Data Analysis: Proc Freq or Proc Surveyfreq?

Hello Colleagues,

 

I am analyzing a Survey Data set. Running Proc Contents reveals the existence of the weight variable that was used. I do not see the other elements like the stratum and the PSU that are usually included in Proc Surveyfreq like shown below

 

proc surveyfreq data = one;

  tables infant / row clwt;

  strata _ststr; *_ststr is the stratification variable;

  cluster _psu; * _psu is the psu or first stage clustering;

  weight _srypwt;

run;

 

Should I simply use the weight variable _srypwt in a Proc Freq or in either Proc Surveyfreq?

 

Thanks,

 

Artp

 


Accepted Solutions
Solution
‎03-17-2017 07:48 AM
PROC Star
Posts: 7,468

Re: Survey Data Analysis: Proc Freq or Proc Surveyfreq?

Since you don't have a complex survey, or at least don't have any info describing anything about clustering or sampling, I'd just go with proc freq. However, if the weight variable is relevant to weight the data, I'd include it as a weight variable in the analysis.

 

Art, CEO, AnalystFinder.com

 

View solution in original post


All Replies
Solution
‎03-17-2017 07:48 AM
PROC Star
Posts: 7,468

Re: Survey Data Analysis: Proc Freq or Proc Surveyfreq?

Since you don't have a complex survey, or at least don't have any info describing anything about clustering or sampling, I'd just go with proc freq. However, if the weight variable is relevant to weight the data, I'd include it as a weight variable in the analysis.

 

Art, CEO, AnalystFinder.com

 

Occasional Contributor
Posts: 8

Re: Survey Data Analysis: Proc Freq or Proc Surveyfreq?

art29,

 

Thank you for your quick response.

 

Artp

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 190 views
  • 0 likes
  • 2 in conversation