SlideShare a Scribd company logo
1 of 10
TRUNG TÂM NGHIÊN CỨU CHÍNH SÁCH VÀ PHÁT
TRIỂN
GiỚI THIỆU PHẦN MỀM XỬ
LÝ SỐ LIỆU STATA
Giới thiệu Stata
• Các phiên bản của Stata: từ version 8 trở đi (hiện tại là version
10) có thêm cả giao diện kéo thả menu.
• Menu: giao diện kéo thả menu
• Stata Command (ctrl + 4): giao diện dòng lệnh (hầu hết thao
tác của chúng ta với dữ liệu đều qua giao diện dòng lệnh).
• Stata Result (ctrl + 1): Cửa sổ hiện thị tất cả các kết quả bao
gồm cả đúng và sai.
• Review (ctrl + 5): xem lại tất cả các lệnh mà bạn đã thực hiện.
• Variable (ctrl + 6): Hiển thị tên biến và kiểu biến…
Gi i thi u v STATA (ti p)ớ ệ ề ế
Giới thiệu Stata(tiếp)
Giao diện menu
File: Trong menu này g m: l u d li u, log, các ví dồ ư ữ ệ ụ
trong Stata
Edit: Các thao tác copy, past
Data: Làm vi c v i bi n (mô t , t o…), liên k t dệ ớ ế ả ạ ế ữ
li uệ
Graphics: Làm vi c v i đ thệ ớ ồ ị
Giới thiệu Stata(tiếp)
Giao diện menu
Statistics: Làm vi c v i th ng kê nh tính t n su t,ệ ớ ố ư ầ ấ
trung bình, h i quy, time – seriesồ
Window: Dùng đ hi n th các c a s nh comand,ể ể ị ử ổ ư
Review… và do file
Giới thiệu Stata(tiếp)
• Câu lệnh phân biệt chữ hoa chữ thường (khuyên dùng chữ
thường).
• C u trúc câu l nh trong Stataấ ệ
[by varlist:] command [varlist] [= exp] [if exp] [in
range] [weight] [using filename] [, options]
• Khi gõ bạn có thể không cần gõ tất cả câu lệnh. Ví dụ:
thay vì gõ generate (tạo một biến) bạn có thể gõ gen là
được.
• Có thể dùng tiếng việt trong Stata 10 (font: .vntime).
Giới thiệu Stata(tiếp)
Ví d v c u trúc l nh generate:ụ ề ấ ệ
generate [type] newvar[:lblname] =exp [if] [in]
Trong đó:
type:kiểu biến, trong Stata có kiểu như byte, int, long, float, double, str
newvar: tên biến
lblname: Nhãn của biến
exp: có thể là một biến, một biểu thức toán học
• Chúng ta có th s d ng menu:ể ử ụ Data  Create
or Change variables  Create new variable
Giới thiệu Stata(tiếp)
Các ki u d li u trong Stata:ể ữ ệ
Kiểu biến Giá trị nhỏ nhất Giá trị lớn nhất
byte -127 100
int -32,767 32,740
long -2,147,483,647 2,147,483,620
float -1.70141173319*10^38 1.70141173319*10^38
double -8.9884656743*10^307 8.9884656743*10^307
str 1 244
Giới thiệu Stata(tiếp)
Thiết lập thư mục làm việc
sysdir set PLUS “D:StataStata10adoplus”  Bình thường sẽ tạo một thư
mục ado ở ổ C, nếu khi bạn update các câu lệnh mới thì nó sẽ tự động vào
thu mục plus ado.
Sử dụng help: help câu_lệnh; findit từ_khóa.
Giới thiệu Stata(tiếp)
Thiết lập thư mục làm việc
sysdir set PLUS “D:StataStata10adoplus”  Bình thường sẽ tạo một thư
mục ado ở ổ C, nếu khi bạn update các câu lệnh mới thì nó sẽ tự động vào
thu mục plus ado.
Sử dụng help: help câu_lệnh; findit từ_khóa.

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Phân tích số liệu định lượng với phần mềm STATA. Bài giảng 1: Bắt đầu với STATA

  • 1. TRUNG TÂM NGHIÊN CỨU CHÍNH SÁCH VÀ PHÁT TRIỂN GiỚI THIỆU PHẦN MỀM XỬ LÝ SỐ LIỆU STATA
  • 2. Giới thiệu Stata • Các phiên bản của Stata: từ version 8 trở đi (hiện tại là version 10) có thêm cả giao diện kéo thả menu. • Menu: giao diện kéo thả menu • Stata Command (ctrl + 4): giao diện dòng lệnh (hầu hết thao tác của chúng ta với dữ liệu đều qua giao diện dòng lệnh). • Stata Result (ctrl + 1): Cửa sổ hiện thị tất cả các kết quả bao gồm cả đúng và sai. • Review (ctrl + 5): xem lại tất cả các lệnh mà bạn đã thực hiện. • Variable (ctrl + 6): Hiển thị tên biến và kiểu biến…
  • 3. Gi i thi u v STATA (ti p)ớ ệ ề ế
  • 4. Giới thiệu Stata(tiếp) Giao diện menu File: Trong menu này g m: l u d li u, log, các ví dồ ư ữ ệ ụ trong Stata Edit: Các thao tác copy, past Data: Làm vi c v i bi n (mô t , t o…), liên k t dệ ớ ế ả ạ ế ữ li uệ Graphics: Làm vi c v i đ thệ ớ ồ ị
  • 5. Giới thiệu Stata(tiếp) Giao diện menu Statistics: Làm vi c v i th ng kê nh tính t n su t,ệ ớ ố ư ầ ấ trung bình, h i quy, time – seriesồ Window: Dùng đ hi n th các c a s nh comand,ể ể ị ử ổ ư Review… và do file
  • 6. Giới thiệu Stata(tiếp) • Câu lệnh phân biệt chữ hoa chữ thường (khuyên dùng chữ thường). • C u trúc câu l nh trong Stataấ ệ [by varlist:] command [varlist] [= exp] [if exp] [in range] [weight] [using filename] [, options] • Khi gõ bạn có thể không cần gõ tất cả câu lệnh. Ví dụ: thay vì gõ generate (tạo một biến) bạn có thể gõ gen là được. • Có thể dùng tiếng việt trong Stata 10 (font: .vntime).
  • 7. Giới thiệu Stata(tiếp) Ví d v c u trúc l nh generate:ụ ề ấ ệ generate [type] newvar[:lblname] =exp [if] [in] Trong đó: type:kiểu biến, trong Stata có kiểu như byte, int, long, float, double, str newvar: tên biến lblname: Nhãn của biến exp: có thể là một biến, một biểu thức toán học • Chúng ta có th s d ng menu:ể ử ụ Data  Create or Change variables  Create new variable
  • 8. Giới thiệu Stata(tiếp) Các ki u d li u trong Stata:ể ữ ệ Kiểu biến Giá trị nhỏ nhất Giá trị lớn nhất byte -127 100 int -32,767 32,740 long -2,147,483,647 2,147,483,620 float -1.70141173319*10^38 1.70141173319*10^38 double -8.9884656743*10^307 8.9884656743*10^307 str 1 244
  • 9. Giới thiệu Stata(tiếp) Thiết lập thư mục làm việc sysdir set PLUS “D:StataStata10adoplus”  Bình thường sẽ tạo một thư mục ado ở ổ C, nếu khi bạn update các câu lệnh mới thì nó sẽ tự động vào thu mục plus ado. Sử dụng help: help câu_lệnh; findit từ_khóa.
  • 10. Giới thiệu Stata(tiếp) Thiết lập thư mục làm việc sysdir set PLUS “D:StataStata10adoplus”  Bình thường sẽ tạo một thư mục ado ở ổ C, nếu khi bạn update các câu lệnh mới thì nó sẽ tự động vào thu mục plus ado. Sử dụng help: help câu_lệnh; findit từ_khóa.