结果:找到“reshap”相关内容186个,排序为按回复时间降序,搜索更多相关帖子请点击“高级”
关于reshape命令的使用
18 个回复 - 21116 次查看
请看以下数据
code listyr1 listyr2 .... listyr_n
1 1990 1991 .... 2013
2 1991 1992 .... 2014
3 1995 1996 .... 2018
4 1998 1999 .... 20 ...
2015-2-14 17:00 - jwh1973 - Stata专版
stata中reshape遇到的问题
13 个回复 - 10838 次查看
正在尝试把一个wide数据处理为long,但是遇到了如下问题
.
reshape long fa_original bdat g, i(firm) j(year)
(note: j = 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013) ...
2021-4-14 16:21 - Neooelu - Stata专版
stata中的reshape命令
6 个回复 - 1510 次查看
我的数据如图使用的是半年报的和年报的。但是使用
reshape命令(
reshape long ROA ,i(code) j(year))无法完好的转换成面板数据,请问我这种情况到底该如何转换?
2022-3-1 23:32 - w979384503 - Stata专版
【stata】请教CHFS2019数据处理reshape相关命令
1 个回复 - 1040 次查看
想把个人数据中基本医疗保险变量以家庭为单位进行整理,因此选用
reshape命令,将长数据转换为宽数据,具体如下:
use "chfs2015_ind.dta",clear
keep hhid_2015 pline hinsurance1
reshape wide hinsurance1, i(h ...
2022-1-19 19:13 - 好多木 - 爱问频道
reshape
0 个回复 - 3547 次查看
请问,我的数据只有1998-2013,为什么rshape long 之后会多998,999
2022-4-30 20:16 - 淡抹年华 - Forum
reshape2确实值得膜拜呀!
3 个回复 - 6260 次查看
rt,处理这么一个问题
原始数据
cn wk logon
1 0 15
1 1 20
1 3 13
2 0 3
2 1 5
2 2 2
想要转换成
cn wk0 wk1 wk2 wk3
1 15 20 0 13
2 3 5 2 ...
2014-5-13 13:11 - complicated - R语言论坛
reshape解决不了
19 个回复 - 2008 次查看
上面的数据,因为每一个公司代码(第一列)对应的变量 “分类”包含的内容不同,比如第一个公司代码,有5个分类,第二个公司代码,只有4个分类,而且分类还和第一个公司不一样。我想把他变形成下面的理想样子
公 ...
2022-1-22 16:52 - bbsflyingsnow - Stata专版
reshape解决面板数据
1 个回复 - 459 次查看
* Example generated by -dataex-. To install: ssc install dataex
clear
input str6 code str132 学历 str4 year double 数量
"000001" "其他" "2018" 34626
"000001" "其他" "2019" 34253
"000001" "其他" " ...
2022-1-26 12:37 - bbsflyingsnow - Stata专版
reshape运行结果出错
2 个回复 - 1064 次查看
stata 菜鸟在尝试把数据
reshape的过程中发生了问题,想请教一下各位大佬,遇到这种情况怎么解决?万分感谢!
2021-8-17 09:15 - 夕末情 - Stata专版
stata reshape求助
3 个回复 - 1559 次查看
为什么使用
reshape long 之后会显示variable already exists的情况呀<br>
有没有大神能够看一下,感谢!
2021-8-18 08:31 - hxxxy - Stata专版
stata reshape 总会出错
3 个回复 - 1420 次查看
clear
use "C:\Users\60348\Desktop\债券余额\公司债余额\公司债汇总.dta"
rename 证券简称 bondcode
duplicates drop
reshape long bondbalance, i(bondcode) j(date)
2020-3-16 08:36 - cbrdododo - 计量经济学与统计软件
怎么一次性reshape多个变量?
1 个回复 - 1188 次查看
数据如图,需要把tr_chn,tr_mat和tr_eng三列合成一列,再把chnb02,matb02和eng02合成一列。
我只知道可以用
reshape long tr_, i(ids) j (sub chn mat eng)把tr_合成一列,但是之后就没办法把后三列合到一列了,请问 ...
2021-4-22 16:01 - Superficial. - Stata专版
请各位帮忙:安装使用reshape2包提示错误和警告
5 个回复 - 13638 次查看
reshape2包已经安装好了。
通过installed.packages()[,c("Package","Version")]可以看到:
reshape2 "
reshape2" "1.4.1"
require("
reshape2")后出现以下错误:
载入需要的程辑包:
reshape2
Error in ...
2016-6-11 09:30 - cooooocat - R语言论坛
reshape显示我的关键字不唯一
4 个回复 - 1200 次查看
dataex 省份 城市 总行 c2006 c2007 c2008 c2009 c2010
----------------------- copy starting from the next line -----------------------
[CODE]
* Example generated by -dataex-. To install: ssc insta ...
2020-12-28 22:14 - limitlessd - Stata专版
stata中的reshape命令
4 个回复 - 10881 次查看
请教一个stata问题。
横轴变量名:return200301,return200302,return200303,return200304,return200401,return200402,return200403,return200404·········return202001
纵轴第一例为股票的编码
想要用 ...
2020-8-1 21:15 - 不懂就问的 - Stata专版
关于reshape的数据处理
6 个回复 - 1358 次查看
希望得到的结果:
变量PunishmentType中,一个格子内包含了多个样本,希望将其进行拆分,并从wide变成long的形式。
本人使用的命令是:
但结果是系统提示id变量不唯一,本人不知道问题出在哪里,求各位老师指 ...
2021-1-14 22:11 - wslver - Stata专版
关于批量reshape的问题
2 个回复 - 1554 次查看
问题如下:1、我们按照下面的命令,能将宽数据变成长数据。
clear
webuse
reshape1
drop ue*
reshape long inc, i(id) j(year)
2、我的问题是,怎么用循环语句把inc80的前缀inc提取出来呢?并把它作为暂元处理 ...
2020-7-20 14:17 - yangye823 - Stata专版
stata中reshape函数进行长宽转换时出现问题
0 个回复 - 1807 次查看
初学Stata软件,在使用
reshape函数进行长宽转换时出现了一点问题。附件为stata文件,第一列是股票代码(code),后面几列是各交易日股票的成交额。现在想利用
reshape函数将数据转换为:第一列表示股票代码,第二列表 ...
2020-6-15 12:50 - 鱼池子1 - Stata专版
stata中reshape遇到问题
14 个回复 - 28057 次查看
想用stata将wide数据转换成long我打了
reshape long sheet36, i(countryname) j(year)
但是stata显示,求大侠释疑
我把原数据放入附件 请各位帮忙看看
no xij variables found
You typed something like re ...
2015-8-13 21:57 - crystal_chenwei - Stata专版
reshape转换
1 个回复 - 906 次查看
求助各位大神!city year x y z
A 1
B 1
C 1
D 1
怎么将其转换为long型的?用
reshape long labor spc hc urb tra gro fd fin, i(city) j(time)显示我的已经是long了?
2019-10-31 20:52 - l1223344 - Stata专版
stata reshape 面板数据
3 个回复 - 2852 次查看
我用stata的
reshape 处理数据,
.
reshape long DR NDTS,i(id) j(year)
显示???请大神赐教!!!!!我实在是不懂问题出在哪里了?求!!!![/backcolor]
(note: j = 2013 2014 2015 2016)
variable id does not ...
2019-10-11 17:13 - 15806657653 - Stata专版
reshape long
14 个回复 - 13208 次查看
有如下数据(节选了部分),想从wide转为long:
time lnfood1 lncigwine1 lncloth1 lnfood2 lncigwine2 lncloth2 lnfood3 lncigwine3 lncloth3
200301 4.6467 4.60687 4.58149 4.6465 4.60687 4.58568 4.64285 4.6 ...
2014-3-24 21:57 - LLieo - Stata专版
怎样一次reshape long 多个变量
9 个回复 - 14179 次查看
在处理数据时,我想一次将多个wide形势的变量转成long形式的。
具体而言,想将附件中的a001到a010开头的wide变量全都化成Long,新生成的变量为housemember,怎样可以比较简单的实现?
自己只会一个一个变量的 ...
2014-11-8 14:14 - 阿狸与桃子 - Stata专版
STATA reshape命令的一些困惑
1 个回复 - 1260 次查看
最近在用
reshape long,也就是宽变长,但是非常非常非常慢,我的数据大概有9000个变量(事先已经set maxvar),400条observation,用fast
reshape会提示observation out of range,在尝试gather命令,但也很慢,求助各 ...
2019-5-8 10:08 - cassie223 - Stata专版
关于reshape命令丢失一半数据的问题
0 个回复 - 780 次查看
如图所示,这是我的原始数据,最开始时不平衡面板数据,我
reshape wide之后变成上述样式,但是我再
reshape long之后却出现如下情况:
我想问一下,这种情况是怎么回事,为什么会丢失20170601等数据,另外如果将 ...
2019-2-15 21:13 - taaankkie - Stata专版
Reshape2逐个展开数据框的问题
6 个回复 - 1563 次查看
求助,现在有一个数据框:想要按行列逐个展开为一个新的3列数据框,第一列为对应行名,第二列为对应列名,第三列为数值:使用
reshape2的melt函数展开后只能得到Value值的单列求问如果想获得像上图那种三列数据框该怎 ...
2018-10-23 14:35 - zzbb2266 - R语言论坛
如何定义reshape中j?
1 个回复 - 1302 次查看
请教大家:将成人数据和家庭数据合并,先把成人数据由长变宽,用
reshape,
reshape wide pidd,i( fid16) j(t) ,出现如下结果(fid16为家庭编号,pidd为个人编号,t为按家庭编号分组排序号),请问是什么问题,j应取 ...
2018-11-5 15:22 - 小明jill - Stata专版
如何用reshape调整数据格式?
6 个回复 - 4041 次查看
如上图所示,我现在有三维数据(国家、行业、年份,v3表示1995年,依次类推),能否用
reshape命令将其调整成如下图的格式(就是用
reshape long命令调整二维数据后的格式)?或者该用其它命令?
2015-8-4 11:54 - lbh134679 - Stata专版
stata reshape 求助 已经用dataex编辑
2 个回复 - 964 次查看
[CODE]
* Example generated by -dataex-. To install: ssc install dataex
clear
input str3 id long(year2001 year2003 year2002 year2004 year2005 year2006 year2007 year2008 year2009 year2010 year2012 ye ...
2018-8-4 21:26 - kissthesnow - Stata专版
reshape 命令问题求助
4 个回复 - 1645 次查看
想将附件中的wide数据转换成long,使用命令
reshape long fdi, i(iso2i iso2j) j(year),在数据量大概为250个以下该命令可以运行,但是数据量达到300个左右时,stata显示图示,请问这是什么问题呢,不知道这是跟数据量 ...
2018-1-31 21:52 - yaolimin123 - Stata专版