Stata Tutorials Topic 25:Generate, Replace, and Rename Variables | Summary Statistics and Regression Analysis Using Stata
Hi, I am Bob. Welcome to the free Stata course that helps you with summary statistics and regression analysis using Stata commands. In the second module, we will explore data management. Today, we will discuss generating new variables through computation or functions. We will also look into commands that replace and rename existing variables.
Please download the BOB.dta dataset:
https://drive.google.com/file/d/1dUBB...
The Stata commands in this video:
*load the Stata data file for this course
use BOB.dta, clear
describe
*generate new variables
generate lhwage=ln(hwage)
summarize lhwage
generate agesq=age*age
summarize agesq
help functions
*replace values of existing variables
summarize hwage
replace hwage=hwage/1000
summarize hwage
*create a new dummy variable using generate and replace
generate college=0
replace college=1 if schooling 12 //there should be a greater than sign before 12
tabulate college
*rename variables
describe
rename hwage hourly_wage
describe
rename * *2024
describe
rename *2024 *
describe
【Some Free Courses on my YouTube Channel】
Economics in Real Life:
• Economics in Real Life
Solutions to Introductory Econometrics A Modern Approach 7th Edition:
• Solutions to Introductory Econometric...
Solutions to Microeconomics Theory and Applications with Calculus:
• Solutions to Microeconomics Theory an...
Introductory Stata:
• Introductory Stata (2022)
Introductory Microeconomics:
• Introductory Microeconomics (2022)
Five Minute Econometrics:
• Five Minute Econometrics (Econometric...
Five Minute Stata:
• Stata Tutorials
【國語Mandarin】現實生活中的經濟學:
• 【Mandarin國語】現實生活中的經濟學
【粵語Cantonese】現實生活中的經濟學:
• 【Cantonese粵語】現實生活中的經濟學
【粵語Cantonese】微觀經濟學基礎:
• 粵語Cantonese微觀經濟學基礎2022
【國語Mandarin】五分鐘計量經濟學:
• 【Mandarin國語】五分鐘計量經濟學(計量經濟學輔導)
【粵語Cantonese】五分鐘計量經濟學:
• 【Cantonese粵語】五分鐘計量經濟學(計量經濟學輔導)
On the Road:
• On the Road
【Become a Supporter of the channel ($2.99) to get PDF transcripts for】
1. Solutions to Microeconomics Theory and Applications with Calculus 5th Edition,
2. Solutions to Introductory Econometrics A Modern Approach 7th Edition,
3. Introductory Stata (2022), and
4. Introductory Microeconomics (2022).
/ @bobwenecon
#Stata #generate #replace #rename #DataManagement
Смотрите видео Generate, Replace, and Rename Variables | Data Management Using Stata | Stata Tutorials Topic 25 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dr. Bob Wen (Stata, Economics, Econometrics) 21 Январь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 299 раз и оно понравилось 7 людям.