失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > stata数值型转化为字符型:tostring.webuse tostring clear .des

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

时间:2021-04-15 11:40:27

相关推荐

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

问题补充:

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十八讲

如果觉得《stata数值型转化为字符型:tostring.webuse tostring clear .des》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。