全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1661 1
2021-11-03
----------------------- copy starting from the next line -----------------------
复制代码

我想生成一个新变量,计算3963*acos[sin(lat1)sin(lat2)+cos(lat1)cos(lat2)cos(long2-long1)]
我用的是gen Distance=3963*acos[sin(lat1)sin(lat2)+cos(lat1)cos(lat2)cos(long2-long1)]  但提示acos not found。如果要安装的话,ssc install acos 好像也不对。不知道该怎么弄?

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2024-3-4 16:36:21
请问解决了吗
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群