Stata--时间变量处理 2021-05-29 本文已影响0人 古城路揸fit人 //将年、月、日三个变量粘衬一个日期变量 gen date = mdy(month,day,year) //从日期变量提取月份 gen month = month(date)