Book Image

Data Analysis with STATA

Book Image

Data Analysis with STATA

Overview of this book

Table of Contents (16 chapters)
Data Analysis with Stata
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Cluster sampling


Cluster sampling is done as follows:

Here is the Stata code to perform cluster sampling:

The output of this command will be as follows:

#Obs per Unit
---------------------------------------------------
Stratum    #Units    #Obs    min    mean    max
--------  --------  ------  -----  ------  --------
1          286      286      1      6.1     100
--------  --------  ------  -----  ------  --------
1          286      286      1      6.1     100
---------------------------------------------------

Here is the code for the mean of the estimation sample:

The output of this code will be as follows:

--------------------------------------------------------------
             |             Linearized
             |  Mean     Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
Fridge_sales |560.5404   18.08756      540.1245    590.0987
volume       |31.98367   2.983672      25.98367    40.00098
--------------------------------------------...