___ ____ ____ ____ ____ tm /__ / ____/ / ____/ ___/ / /___/ / /___/ 4.0 Copyright 1984-1995 Statistics/Data Analysis Stata Corporation 702 University Drive East College Station, Texas 77840 USA 409-696-4600 409-696-4601 (fax) 800-STATA-PC stata@stata.com Unlimited-user IBM RISC (network) perpetual license: Serial number: RI-640000000 Licensed to: Stata Corporation College Station, Texas Notes: 1. (-k### option) 1024K bytes allocated to data 2. Command line editing disabled 3. Stata running in batch mode . do check . use check . varset strata is strata psu is psu pweight is weight fpc is Nh . svymean x Survey mean estimation pweight: weight Number of obs = 9 Strata: strata Number of strata = 2 PSU: psu Number of PSUs = 5 FPC: Nh Population size = 130 ------------------------------------------------------------------------------ Mean | Estimate Std. Err. [95% Conf. Interval] Deff ---------+-------------------------------------------------------------------- x | 5.438462 .6394459 3.403459 7.473464 1.169956 ------------------------------------------------------------------------------ Finite population correction (FPC) assumes simple random sampling without replacement of PSUs within each stratum with no subsampling within PSUs. . svytotal x Survey total estimation pweight: weight Number of obs = 9 Strata: strata Number of strata = 2 PSU: psu Number of PSUs = 5 FPC: Nh Population size = 130 ------------------------------------------------------------------------------ Total | Estimate Std. Err. [95% Conf. Interval] Deff ---------+-------------------------------------------------------------------- x | 707 174.8837 150.4421 1263.558 5.178137 ------------------------------------------------------------------------------ Finite population correction (FPC) assumes simple random sampling without replacement of PSUs within each stratum with no subsampling within PSUs. . svyratio y/x Survey ratio estimation pweight: weight Number of obs = 9 Strata: strata Number of strata = 2 PSU: psu Number of PSUs = 5 FPC: Nh Population size = 130 ------------------------------------------------------------------------------ Ratio | Estimate Std. Err. [95% Conf. Interval] Deff ------------------+----------------------------------------------------------- y/x | .7524752 .1173222 .3791037 1.125847 1.239492 ------------------------------------------------------------------------------ Finite population correction (FPC) assumes simple random sampling without replacement of PSUs within each stratum with no subsampling within PSUs. . svyreg y x Survey linear regression pweight: weight Number of obs = 9 Strata: strata Number of strata = 2 PSU: psu Number of PSUs = 5 FPC: Nh Population size = 130 F( 1, 3) = 16.14 Prob > F = 0.0277 R-squared = 0.6217 ------------------------------------------------------------------------------ y | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------+-------------------------------------------------------------------- x | 1.139385 .2835864 4.018 0.028 .236886 2.041883 _cons | -2.104192 2.023239 -1.040 0.375 -8.543042 4.334659 ------------------------------------------------------------------------------ Finite population correction (FPC) assumes simple random sampling without replacement of PSUs within each stratum with no subsampling within PSUs. . varset fpc, clear . svymean y x Survey mean estimation pweight: weight Number of obs = 9 Strata: strata Number of strata = 2 PSU: psu Number of PSUs = 5 Population size = 130 ------------------------------------------------------------------------------ Mean | Estimate Std. Err. [95% Conf. Interval] Deff ---------+-------------------------------------------------------------------- y | 4.092308 .9445151 1.086439 7.098176 1.137709 x | 5.438462 .6685016 3.310991 7.565932 1.190169 ------------------------------------------------------------------------------ . svylc y - x ( 1) y - x = 0.0 ------------------------------------------------------------------------------ Mean | Estimate Std. Err. t P>|t| [95% Conf. Interval] ---------+-------------------------------------------------------------------- (1) | -1.346154 .6236869 -2.158 0.120 -3.331004 .6386961 ------------------------------------------------------------------------------ . svylogit z x y (sum of wgt is 1.3000e+02) Survey logistic regression pweight: weight Number of obs = 9 Strata: strata Number of strata = 2 PSU: psu Number of PSUs = 5 Population size = 130 F( 2, 2) = 0.06 Prob > F = 0.9473 ------------------------------------------------------------------------------ z | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------+-------------------------------------------------------------------- x | -.1193395 .4719456 -0.253 0.817 -1.621281 1.382602 y | -.0008251 .3095318 -0.003 0.998 -.9858935 .9842433 _cons | .177172 1.258341 0.141 0.897 -3.827432 4.181776 ------------------------------------------------------------------------------ . svyprobt z x y (sum of wgt is 1.3000e+02) Survey probit regression pweight: weight Number of obs = 9 Strata: strata Number of strata = 2 PSU: psu Number of PSUs = 5 Population size = 130 F( 2, 2) = 0.06 Prob > F = 0.9472 ------------------------------------------------------------------------------ z | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------+-------------------------------------------------------------------- x | -.0766498 .2892834 -0.265 0.808 -.9972788 .8439793 y | -.0002136 .1830851 -0.001 0.999 -.582872 .5824448 _cons | .1207307 .8018349 0.151 0.890 -2.431066 2.672527 ------------------------------------------------------------------------------ . svytest x = y Adjusted Wald test ( 1) x - y = 0.0 F( 1, 3) = 0.03 Prob > F = 0.8745 . end of do-file