BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
chopper
Fluorite | Level 6

I have the following SAS statement that yields a 0 for std error of mean and sum. I am trying to understand why. Any help would be appreciated. I was able to get output if I set varmethod to jackknife. Does that help?

 

Thanks.

 

data sales_str_sizes;
input str_sales _total_;
datalines;
1 425
2 20
3 6
4 2
5 2
6 2
7 43
;
proc surveymeans data=sales_neyman mean sum clsum clm total=sales_str_sizes;
	var sales;
	weight SamplingWeight;
	strata str_sales;
	title "Neyman Allocation for Sales";
run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
chopper
Fluorite | Level 6

The problem was my strata totals were for the sample and not the population.

View solution in original post

2 REPLIES 2
ballardw
Super User

The answer probably lies in the data summarized.

Note that part of the reason to use a TOTAL secondary set is to generate a finite population correction but this is not done if you ue BRR or jacknife. So that would be part of the reason you get a different result with jackknife: no correction.

 

Having strata with a population of 2 such as your strata 4, 5 and 6 looks a tad odd to me.

chopper
Fluorite | Level 6

The problem was my strata totals were for the sample and not the population.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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