turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Replicate weights

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-14-2017 04:21 PM

My dataset has 28 replicate weights and I use them in "PROC SURVEYFREQ" using the repweights statement. In the results viewer, I noticed in the Variance Estimation table that the number of replicates is listed as 12. Why is there a discrepancy in the number of replicate weights in the dataset and the results viewer?

Accepted Solutions

Solution

03-16-2017
09:06 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-15-2017 01:54 PM

Try

REPWEIGHTS CI_FWT1 - CI_FWT28;

You didn't say but I suspect that the replicates used were CI_FWT1, CI_FWT10 through 19 and CI_FWT28

Reason:

CI_FWT1: says use all of the variables that start with CI_FWT1 ( first 11 variable as above)

and then ADDED the CI_FWT28.

Test this by using:

data junk;

set CIrear15;

keep CI_FWT1:CI_FWT28;

run;

and see if the variables I mentioned are the only ones in the set.

The - says to use the numbered range in the list 1 through 28.

All Replies

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-14-2017 04:45 PM

Please post the code used. Other options may have influence on the result.

Also from the documentation:

Each REPWEIGHTS variable should contain the weights for a single replicate, and the number of replicates equals the number of REPWEIGHTS variables. The REPWEIGHTS variables must be numeric, and the variable values must be nonnegative numbers.

So how many variables were on your REPWEIGHTS statement?

This could also be the case of analyzing one or more variables with low frequency that had missing values for all the records in some replicates.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-15-2017 08:21 AM

Thanks. Here is the code.

proc surveyfreq data=CIrear15;

REPWEIGHTS CI_FWT1:CI_FWT28;

weight CI_FWT0;

TABLES SEAT_BELT;

run;

There are 28 replicate weights and they are all numeric and nonnegative numbers. I do not get any error or warning messages when I run this code. I am just curious why the results window shows 12 replicate weights even though there are 28 replicate weights in the dataset.

Solution

03-16-2017
09:06 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-15-2017 01:54 PM

Try

REPWEIGHTS CI_FWT1 - CI_FWT28;

You didn't say but I suspect that the replicates used were CI_FWT1, CI_FWT10 through 19 and CI_FWT28

Reason:

CI_FWT1: says use all of the variables that start with CI_FWT1 ( first 11 variable as above)

and then ADDED the CI_FWT28.

Test this by using:

data junk;

set CIrear15;

keep CI_FWT1:CI_FWT28;

run;

and see if the variables I mentioned are the only ones in the set.

The - says to use the numbered range in the list 1 through 28.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-15-2017 02:14 PM

Thank you for the suggestion! That worked. I was using the wrong code.