Programming the statistical procedures from SAS

How to sample data with weight?

Posts: 36

How to sample data with weight?

I want to do sample selection using one variable as weight. Which procedure can do this? It seems there is no "weight" option implented with proc surveyselect.

Thanks in advance.

Regular Contributor
Posts: 152

Re: How to sample data with weight?

A PROC SURVEYSELECT example shows how to select a sample proportional to size.  Make your weight variable the argument of the SIZE statement.  If the range of weight is large, this example shows how to be sure some of the observations with relatively small weights have some probability of being selected.

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation