tag 标签: replace经管大学堂:名校名师名课

相关帖子

版块 作者 回复/查看 最后发表
如何将所有空值全部replace为0 Stata专版 paupymore 2013-6-2 17 44979 铸形者 2024-2-25 11:40:05
做循环语句,提示出错invalid syntax,求帮助 Stata专版 a_shun619 2013-8-18 10 11224 huihui12379 2019-7-27 18:34:37
关于计算截面琼斯模型 统计软件培训班VIP答疑区 施冠锐 2013-6-20 8 28746 arlionn 2017-4-29 16:28:51
stata执行命令问题 Stata专版 日落有声 2013-8-14 1 1366 ermutuxia 2015-1-26 20:30:08
原创:如何让Stata更快的进行maximum likelihood计算 Stata专版 夏目贵志 2013-5-7 6 5928 夏目贵志 2014-4-22 23:33:55
分位数回归 Stata专版 hubifeng? 2013-7-12 2 1759 hubifeng? 2013-7-12 21:19:10
invalid syntax错误 Stata专版 shwap 2013-7-4 7 20742 shwap 2013-7-5 10:30:36
请教连老师:行业代码的处理? 统计软件培训班VIP答疑区 lilinhong2005 2013-7-3 2 3476 lilinhong2005 2013-7-5 01:26:52
在import 过程中用dbdsopts巧妙选择读入excel文件的指定行 attach_img SAS专版 webgu 2013-3-19 5 4597 darrenda 2013-6-9 09:27:21
How To Read Big Dataset To R 学习笔记1.0 水天一色DIY 2013-5-15 0 1469 水天一色DIY 2013-5-15 12:20:24
多个文件合并一家计算时间日期天数的stata程序 attachment 计量经济学与统计软件 red123star 2013-4-3 0 1969 red123star 2013-4-3 13:51:34
悬赏 回归结果输出到excel里面出错,大牛帮帮忙 - [!reward_solved!] SAS专版 zmls 2013-3-21 1 1657 zmls2011 2013-3-22 00:22:22
请教连玉君老师?还是关于标准差计算的 统计软件培训班VIP答疑区 yuzi_8888 2013-3-20 1 1087 arlionn 2013-3-20 17:42:13
[愁!]累积分布函数,replace无法存入local macro的值(已解决,见回帖) attachment Stata专版 monstersivle 2013-1-30 5 3543 robert_jia 2013-3-7 23:23:10
计量经济学STATA虚假回归操作问题。。。新手求助,万分感谢!!! 爱问频道 skycao 2013-1-14 1 1370 whlxy888 2013-2-18 17:19:53
悬赏 stata批量导入excel文件出错 - [!reward_solved!] attach_img Stata专版 baroman 2012-8-26 9 6614 anchorchen 2012-10-19 21:24:26

相关日志

分享 Technical Analysis of Stock Trends
00JP 2014-10-22 20:46
Describes how edwards-magee.com exited and shortened the market in January 2008 and went long in the gold market in 2003 Presents a powerful and simple system to replace Dow Theory Contains new patterns and methods, integrates new charts, as well as offers expanded material on Magee's Basing Points Procedure Expands coverage of pragmatic portfolio theory as a viable alternative to modern portfolio theory
18 次阅读|0 个评论
分享 69 of 70 用like寻找匹配词
yukai08008 2013-3-13 23:37
用like的缺点是 按字精确匹配 scan则是要清楚所选词出现的具体位置 proc import dbms=excel out=ser datafile='F:\raw material\_69 of 70.xls' replace; run; data res; set ser; where job like '%manager%';/*严格按字匹配*/ run; data res2; set ser; where upcase(scan(job,2))='MANAGER';/*需要制定具体的位置,如第二个词*/ run; data res3; set ser; if upcase(substr(job,)) proc print data=res2; run;
个人分类: 学习笔记|1 次阅读|0 个评论
分享 merge数组 按变量 52 of 70
yukai08008 2013-3-13 17:08
结果不是 jo 186 . ja 2121 a joan 4695 . . 3567 fi joan 4698 m John 5463 accouting 而是 Obs Name empid department 1 Jill 1864 2 Jack 2121 accouting 3 3567 finance 4 Joan 4698 marketing 5 John 5463 accouting 因为指针是按照变量排序移动的 proc import dbms=excel out=one datafile='F:\raw material\_52 of 70_1.xls' replace; run; proc import dbms=excel out=two datafile='F:\raw material\_52 of 70_2.xls' replace; run; data all; merge one(in=o) two(in=d); by empid; if (o and not d) or (d and not o);/*其中有一个数组无效in=.,成立;注意指针下移是按照empid的排序的*/ run; proc print data=all; run;
个人分类: 学习笔记|0 个评论
分享 Merge
statalearning 2012-12-21 10:05
之前一直对merge m:m不感冒,直到最近才发现它的好处。 废话少说,上log set obs 300 egen id=seq() gen firm=1 save "firmid" clear set obs 10000 egen id=seq() replace id=int(id/100) if id100*there will be firm id greater than 100 gen employ=id+100 save "employ" *i plan to assign each employ value in eploy.dta to firid.dta use firmid.dta sort id merge m:m id using employment *in this case, all firm id are kept clear use firmid.dta joinby id using employ.dta *in this case, only id =100 are kept.
0 个评论

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-20 04:34