stata数值型转化为字符型:tostring.webuse tostring,clear .des

发布时间:2021-02-26 06:02:20

stata数值型转化为字符型:tostring.webuse tostring,clear .des .list .tostring year day,replace.des .gen date1=month+”/”+day+”/”+year //.list.gen date2=date(date1,”mdy”)最后一行不是计算从那天起直到括号中指定的某天date1一共过了多少天,为什么我的dat

网友回答

应该这样:webuse tostring,clear
des list tostring year day,replace
des gen date1=month+/+day+/+year
listgen date2=date(date1,MDY)
======以下答案可供参考======
供参考答案1:
我的也是诶~stata十八讲
以上问题属网友观点,不代表本站立场,仅供参考!