Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SVYSET and SVY:tab help

    Hello, I have the following two SPSS commands. This is what I have from the SPSS codebook:

    CSPLAN ANALYSIS
    /PLAN FILE='C:\Users\Maria Teresa\Desktop\articulo DHS\dhs data '+
    'set\GU_2014-15_DHS_03212017_1754_47917\muestreo_guatemala.csap lan'
    /PLANVARS ANALYSISWEIGHT=WGT
    /SRSESTIMATOR TYPE=WR
    /PRINT PLAN
    /DESIGN STRATA=V022 CLUSTER=V021
    /ESTIMATOR TYPE=WR.

    CSTABULATE
    /PLAN FILE='C:\Users\Maria Teresa\Desktop\articulo DHS\dhs data '+
    'set\GU_2014-15_DHS_03212017_1754_47917\muestreo_guatemala.csap lan'
    /TABLES VARIABLES=B8_under5
    /CELLS POPSIZE TABLEPCT
    /STATISTICS SE
    /MISSING SCOPE=TABLE CLASSMISSING=EXCLUDE.

    How would I recode them in Stata?

  • #2
    Your best bet is to get the Stata commands directly from the data provider. If the commands are not included in the documentation, try asking the data provider directly.

    Failing that, and if you don't receive a solution from another Statalist contributor, you might use the documentation from another reputable survey as an SPSS-to-Stata Rosetta Stone. You will want an example that uses the exact same weighting method, which in your case appears to be Taylor series linearization with replacement (but I am not very familiar with SPSS syntax).

    For example, this documentation for the Medical Expenditure Panel Survey (conducted by the United States Agency for Healthcare Research and Quality) includes commands for SPSS, Stata, and several other software packages.

    Finally, I suggest you compare several estimates and standard errors created in Stata to published values to confirm that they match exactly.
    David Radwin
    Senior Researcher, California Competes
    californiacompetes.org
    Pronouns: He/Him

    Comment

    Working...
    X