Automated Analysis of Survey Data Using STATA by Vinay Patel

automated analysis of survey data using stata n.w
1 / 15
Embed
Share

"Discover how Vinay Patel presents automated survey data analysis using STATA at the National Dairy Development Board conference. Learn about survey data characteristics, estimation of variables, automation techniques, and interface with GIS. Explore the application of STATA commands for efficient data processing."

  • Survey Data Analysis
  • STATA
  • Vinay Patel
  • Automation Techniques
  • Data Estimation

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Automated Analysis of Survey Data using STATA Presented By: Vinay Patel Deputy Manager, SA & S Group National Dairy Development Board @ STATA Usergroups Conference 2013

  2. 1. Background 2. Prior to using STATA 3. Survey Data Characteristics 4. Estimation of Important Variables 5. Automation of Survey data analysis 6. Important Commands-need to know 7. Interface between GIS and STATA Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  3. Background Types of Activities Various Surveys Repetitive Surveys Survey procedures Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  4. Prior to using STATA Time required @ every stage Data Collection Data Analysis in EXCEL Hypothesis Testing Report Preparation Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  5. Survey Data Characteristics Single-Stage Design: svyset [ psu ] [ weight ] [, strata (varname) fpc (varname) ] Primary Sampling Unit (psu) Sampling weights-pweight Strata Finite Population Correction (fpc) svyset VILLAGE [pweight=invweight], strata(QUADSTRATA) fpc(FPC) poststrata(PSTRATA) postweight(THLACTHH) vce(linearized) Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  6. Multi-Stage Design: svyset psu [weight] [ , strata (varname) fpc (varname) ] [ || ssu [ , strata (varname) fpc (varname) ] Stages are delimited by || SSU secondary / subsequent sampling units Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  7. Estimation of Important Variables Important Variables Social Category Producer Surplus Economic Category Milk Production Village Surplus Size of Family Milch Animals Milch Animal Households Milch Animals Yield Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  8. Problem: % Distribution of Households by Social Category Through Pivot table in excel Through Stata command tabulate Tehsil CASTE if CASTE > 0, nofreq row svy linearized : proportion CASTE,over(PSTRATA) cformat(%9.2f) Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  9. Problem: Composition of Milch Animals (%) Through Pivot table in excel Through Stata command tabstat lcper cbper bfper totaniper, by(Tehsil) columns(variables) format(%9.0f) svy linearized : total LCIM CBIM BFIM inmilk lc cb bf MilchAnimal, over (PSTRATA) cformat(%9.2f) Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  10. Problem: Estimated Milk Production Species-wise Through Pivot table in excel Through Stata command tabstat lcshare cbshare bfshare allshare, by(Tehsil) columns(variables) format(%9.0f) svy linearized : total LCPROD CBPROD BFPROD TOTPROD, over(PSTRATA) cformat(%9.0f) Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  11. Problem: Milk Procured by different Agencies Through Stata command Through Pivot table in excel tabstat sldcsper sllocalper sldudhiaper sloutvillper slpvtdairyper totsaleper, by(Tehsil) columns(variables) format(%9.2f) svy linearized : total SLDCS SLLOCAL SLDUDHIA SLOUTVILL SLPVTDAIRY totalsale, over(PSTRATA) cformat(%9.2f) Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  12. Automation of Survey data analysis Create a Do-file Convert into ado-file Use same do or ado-file for repetitive use Vinay A. Patel N.D.D.B

  13. Important Commands-need to know For Export of tables For graphs tabout tableplot xml_tab vioplot outreg2 tabplot collapse catplot Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  14. Interface between GIS and STATA shp2dta using shpfilename, database(filename) coordinates(filename) [options] spmap - Visualization of spatial data spmap DCSSALE using thlscoor.dta, id(_ID) title("Sold to DCS as a % of Total Sale in Tehsil") fcolor(white gs15 ltkhaki ltblue ) point( xcoord( x_c) ycoord( y_c) proportional( DCSSALE) size(*2) fcolor(eltgreen) ocolor(white)) label( xcoord( x_c) ycoord( y_c) label( teh_dcs) size(*.5)) spmap DCSSALE using thlscoor.dta, id(_ID) title("Sold to DCS as a % of Total Sale in Tehsil") fcolor(white gs15 ltkhaki ltblue ) point( xcoord( x_c) ycoord( y_c) proportional( DCSSALE) size(*2) fcolor(eltgreen) ocolor(white)) label( xcoord( x_c) ycoord( y_c) label( teh_dcs) size(*.5)) Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

  15. THANK YOU Vinay A. Patel Automated Analysis of Survey Data using STRATA N.D.D.B

More Related Content