一、从文件读入 pandas支持文件类型,CSV, general delimited text files, Excel files, json, html tables, HDF5 and STATA。 1.Comma-separated value (CSV) files can be rea ...
分类:
其他好文 时间:
2016-04-18 11:22:38
阅读次数:
266
1.分组回归sort stateby state:reg xxx xxx2.交叉项genicv可以一键生成很多交叉项##可以直接表示交叉项。【例子】ssc install genicvsysuse auto,cleargenicv length weight foreign \\\会生成4个交叉项,...
分类:
其他好文 时间:
2015-12-06 19:09:23
阅读次数:
983
1.vimdiff[root@oldboylinux~]#vimdiffa.txtb.txt2filestoedit-thisisatext|-thisisatext~|~~|~a.txt1,1Allb.txt1,1All"b.txt"1L,15C-thisisatext|-thisisatext2.stat[root@oldboylinux~]#stata.txtFile:`a.txt‘Size:15Blocks:8IOBlock:4096regularfileDevice:803h/2051dInode:..
分类:
系统相关 时间:
2015-11-30 02:29:03
阅读次数:
241
1.计算外部董事比例collapse (count) indratio if indratio==2,by(stkcd year)2.合并数据merge m:m stkcd year using C:\Users\ASUS\Desktop\intradio3.缺失值替换replace vc_shar...
分类:
其他好文 时间:
2015-10-25 14:58:44
阅读次数:
195
1.判断是否适合做主成份分析,变量标准化Kaiser-Meyer-Olkin抽样充分性测度也是用于测量变量之间相关关系的强弱的重要指标,是通过比较两个变量的相关系数与偏相关系数得到的。KMO介于0于1之间。KMO越高,表明变量的共性越强。如果偏相关系数相对于相关系数比较高,则KMO比较低,主成分分析...
分类:
其他好文 时间:
2015-08-13 21:43:32
阅读次数:
453
1.如何删除某几行的数据drop if year2==2014 | year2==20132.如何计算连续几年的标准差*year2为int型bys stkcd (year2):gen roa1=adjroa[_n-1]bys stkcd (year2):gen roa2=adjroa[_n-2]by...
分类:
其他好文 时间:
2015-08-09 22:14:22
阅读次数:
1656
一、何为固定宽度型数据 有固定宽度的,某个或某几个数位上的数字表示某一类信息的数据。最简单明了的例子,你的身份证号。 有raw和txt两种数据文件格式。二、导入步骤依据数据的特点编写.dct 文件,文件中需说明读入数据的路径和名称。使用infile 命令读入.dct 文件,一般为:.infile.....
分类:
其他好文 时间:
2015-06-29 21:52:24
阅读次数:
223
一、文件扩展名数据文件.dta命令文件.do程序文件.ado二、不同统计软件的对比三、使用wbopendata(世界银行公开数据)模块获取数据,减轻数据下载管理的工作量例1:用wbopendata获得“每百人手机订购量“指标的元数据并制作地图. wbopendata, language (en -E...
分类:
其他好文 时间:
2015-06-28 22:47:02
阅读次数:
237
generate str name="zhangsang" . generate int age=28. set obs 1obs was 0, now 1. replace name = "zhangsang" in 1name was str1 now str9(1 real change made). replace age = 22 in 1(1 real change made). se...
分类:
其他好文 时间:
2015-05-15 17:48:10
阅读次数:
120
IntroduzioneE’ stata rilevato un nuovo attacco tramite exploit verso il demone IIS (Internet Information Server) dei sistemi operativi Windows.In real...
分类:
Web程序 时间:
2015-04-17 13:07:56
阅读次数:
268