Estimating means and totals with simple expansion estimators



To estimate a mean and total from a survey, we use the svymean and svytotal commands, respectively. The syntax of these commands is identical, so let's focus on the syntax of svytotal. To estimate the total of some variable, var1, from n units whose weights are given in the n by 1  vector wtname, you use the command:

 
                 svytotal var1 [weight=wtname], [options you choose]
It's that simple! Some of the really useful options that you can choose include the following: There are many other options that you can choose in the survey commands, for example to get confidence intervals (ci) or design effects (deff). Check Stata's help system under svytotal for a description of these options.
 



Sun Sep 19 12:42:31 EDT 1999