New SAS Procedures for Analysis of Sample Survey Data

by Irina 20. April 2007 08:28

The SURVEYSELECT procedure provides a variety of methods for selecting probability-based random samples.

PROC SURVEYMEANS and PROC SURVEYREG analyze survey data collected according to a complex survey design.

SURVEYSELECT

The SURVEYSELECT procedure provides the following equal probability sampling methods:

  • equal probability sampling methods
  • unrestricted random sampling (with replacement)
  • systematic random sampling:
  • sequential random sampling

    This procedure also provides the following probability proportional to size (PPS) methods:

  • PPS without replacement
  • PPS with replacement
  • PPS systematic
  • various PPS algorithms for selecting two units per stratum
  • sequential PPS with minimum replacement

    Example:

    proc surveyselect data=frame out=sample

    method=srs n=(3, 5, 3, 6, 2);

    strata state region;

     run;

    The METHOD=SRS option specifies that simple random sampling is to be used for sample selection.In simple random sampling, units are selected with equal probability and without replacement. The N = (3, 5, 3, 6, 2) option specifies the sample sizes for the strata — a sample of 3 households from the stratum, 5 households from the second stratum and so on. The OUT=SAMPLE option names the output data set that contains the selected sample. The STRATA statement identifies STATE and REGION as the stratification variables. The input data set FRAME is sorted by these stratification variables.

    SURVEYMEANS

    The SURVEYMEANS procedure can compute the following statistics:
  • population total estimate and its standard deviation and corresponding t-test
  • PSU-level mean estimate and its standard error and corresponding t-test
  • 95% confidence limits for the population total and for the PSU-level mean estimates
  • degrees of freedom for the variance estimation
  • mean-per-element estimate and its standard error
  • data summary information
  • combined sampling fraction over strata and the total number of primary sampling units (PSUs)

    Example:

     proc surveymeans data=HHSample N=StrataTotals

     sum df clm fraction;

     var income expense;

     strata state region / list;

     weight weight; run;

  •  

    SURVEYREG

    The SURVEYREG procedure performs regression analysis for sample survey data. The procedure can handle complex survey sample designs, including designs with stratification, clustering, and unequal weighting. The procedure fits linear models for survey data and computes regression coefficients and their variance-covariance matrix. The procedure also provides significance tests for the model effects and for any specified estimable linear functions of the model parameters. Using the regression model, the procedure can compute predicted values for the sample survey data.

    Example:

    proc surveyreg data=HHSample N=StrataTotals;

    strata state region / list;

    model expense = income;

    weight weight;

    run;

    more...

    Tags: sampling

    SAS

    Related posts

    Comments

    10/25/2011 4:30:38 AM

    Great Information and post! It is very informative and suggestible for the user of solar energy, May I think it can be beneficial in coming days...

    Survey Sample

    Add comment


    (will show your Gravatar icon)  





    Live preview

    2/5/2012 9:26:20 PM

     

    About the author

    Irina Spivak Irina Spivak
    Team Leader at G-Stat. More...


    Send mail Email

    Blogroll

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2012

      Sign in

      eXTReMe Tracker