结果:找到“reshape r”相关内容169个,排序为按回复时间降序,搜索更多相关帖子请点击“高级”
机器学习房价预测数据集含使用百度飞桨重写的房价预测模型程序源代码说明
0 个回复 - 141 次查看
机器学习房价预测数据集含使用百度飞桨重写的房价预测模型程序源代码说明
{
"cells": [
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [],
"sou
rce": [
...
2024-1-5 20:07 - yusb - 现金交易版
关于reshape命令的使用
18 个回复 - 21301 次查看
请看以下数据
code listy
r1 listy
r2 .... listy
r_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函数进行长宽转换时出现问题
0 个回复 - 1844 次查看
初学Stata软件,在使用
reshape函数进行长宽转换时出现了一点问题。附件为stata文件,第一列是股票代码(code),后面几列是各交易日股票的成交额。现在想利用
reshape函数将数据转换为:第一列表示股票代码,第二列表 ...
2020-6-15 12:50 - 鱼池子1 - Stata专版
stata中reshape遇到问题
14 个回复 - 28336 次查看
想用stata将wide数据转换成long我打了
reshape long sheet36, i(count
ryname) j(yea
r)
但是stata显示,求大侠释疑
我把原数据放入附件 请各位帮忙看看
no xij va
riables found
You typed something like
re ...
2015-8-13 21:57 - crystal_chenwei - Stata专版
怎样一次reshape long 多个变量
9 个回复 - 14343 次查看
在处理数据时,我想一次将多个wide形势的变量转成long形式的。
具体而言,想将附件中的a001到a010开头的wide变量全都化成Long,新生成的变量为housemembe
r,怎样可以比较简单的实现?
自己只会一个一个变量的 ...
2014-11-8 14:14 - 阿狸与桃子 - Stata专版
stata中reshape遇到的问题
13 个回复 - 11184 次查看
正在尝试把一个wide数据处理为long,但是遇到了如下问题
.
reshape long fa_o
riginal bdat g, i(fi
rm) j(yea
r)
(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专版
reshape出现r(9)错误
2 个回复 - 224 次查看
reshape long E_Sco
re, i(RIC) j(yea
r)
(j = 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019
> 2020 2021 2022)
va
riable id does not uniquely identif ...
2024-3-25 00:06 - yaxxin - Stata专版
reshape出现r(9)错误
2 个回复 - 365 次查看
reshape long E_Sco
re, i(RIC) j(yea
r)
(j = 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019
> 2020 2021 2022)
va
riable id does not uniquely ident ...
2024-3-24 03:01 - yaxxin - Stata专版
reshape命令问题
8 个回复 - 752 次查看
我用
reshpe进行数据转置,结果却显示这样
values of va
riable yea
r not unique within hhcode
You
r data a
re cu
rrently long. You a
re pe
rfo
rming a
reshape wide. You
specified i(hhcode) and j(yea ...
2023-12-4 11:28 - JokerZhouS - Stata专版
reshape问题
4 个回复 - 446 次查看
clea
r
input float id int yea
r st
r24 p
rovince st
r33 city float(land3 a
rea3)
26731 2007 "黑龙江省" "七台河市" 10 .103
26994 2007 "黑龙江省" "七台河市" 5 .159
26765 2007 "黑龙江省" "七台河 ...
2023-11-6 19:25 - 21058_pxapp - Stata专版
stata reshape 数据的长宽变换 技巧
2 个回复 - 1402 次查看
数据的长宽变换http://book.2cto.com/201412/48763.html
(无意中看到的,觉得不错,贴一下,感谢作者) 很好!!这个链接,让我成功了。内容如下:
在面板数据中,如果包含两个以上的标识变量,则数据有两种表现形 ...
2023-7-15 20:37 - dcc1001 - Stata专版
在用reshape转换长面板数据时候一直报错
1 个回复 - 456 次查看
以前也用过这个命令是正常的,但是这次老报错
这是输入的命令:
reshape long 企业绩效 企业规模 股权集中度 数字金融 覆盖广度 使用深度 数字化程度 营业收入增长率 资产负债率 企业年龄, i(i) j(yea
r)
显示是这个 ...
2022-12-12 10:26 - 18735140926 - Stata专版
stata中的reshape命令
6 个回复 - 1567 次查看
我的数据如图使用的是半年报的和年报的。但是使用
reshape命令(
reshape long ROA ,i(code) j(yea
r))无法完好的转换成面板数据,请问我这种情况到底该如何转换?
2022-3-1 23:32 - w979384503 - Stata专版
【stata】请教CHFS2019数据处理reshape相关命令
1 个回复 - 1055 次查看
想把个人数据中基本医疗保险变量以家庭为单位进行整理,因此选用
reshape命令,将长数据转换为宽数据,具体如下:
use "chfs2015_ind.dta",clea
r
keep hhid_2015 pline hinsu
rance1
reshape wide hinsu
rance1, i(h ...
2022-1-19 19:13 - 好多木 - 爱问频道
reshape
0 个回复 - 3561 次查看
请问,我的数据只有1998-2013,为什么
rshape long 之后会多998,999
2022-4-30 20:16 - 淡抹年华 - Forum
reshape2确实值得膜拜呀!
3 个回复 - 6283 次查看
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 个回复 - 2069 次查看
上面的数据,因为每一个公司代码(第一列)对应的变量 “分类”包含的内容不同,比如第一个公司代码,有5个分类,第二个公司代码,只有4个分类,而且分类还和第一个公司不一样。我想把他变形成下面的理想样子
公 ...
2022-1-22 16:52 - bbsflyingsnow - Stata专版
reshape解决面板数据
1 个回复 - 478 次查看
* Example gene
rated by -dataex-. To install: ssc install dataex
clea
r
input st
r6 code st
r132 学历 st
r4 yea
r double 数量
"000001" "其他" "2018" 34626
"000001" "其他" "2019" 34253
"000001" "其他" " ...
2022-1-26 12:37 - bbsflyingsnow - Stata专版
reshape运行结果出错
2 个回复 - 1090 次查看
stata 菜鸟在尝试把数据
reshape的过程中发生了问题,想请教一下各位大佬,遇到这种情况怎么解决?万分感谢!
2021-8-17 09:15 - 夕末情 - Stata专版
stata reshape求助
3 个回复 - 1591 次查看
为什么使用
reshape long 之后会显示va
riable al
ready exists的情况呀<b
r>
有没有大神能够看一下,感谢!
2021-8-18 08:31 - hxxxy - Stata专版
stata reshape 总会出错
3 个回复 - 1460 次查看
clea
r
use "C:\Use
rs\60348\Desktop\债券余额\公司债余额\公司债汇总.dta"
rename 证券简称 bondcode
duplicates d
rop
reshape long bondbalance, i(bondcode) j(date)
2020-3-16 08:36 - cbrdododo - 计量经济学与统计软件
怎么一次性reshape多个变量?
1 个回复 - 1220 次查看
数据如图,需要把t
r_chn,t
r_mat和t
r_eng三列合成一列,再把chnb02,matb02和eng02合成一列。
我只知道可以用
reshape long t
r_, i(ids) j (sub chn mat eng)把t
r_合成一列,但是之后就没办法把后三列合到一列了,请问 ...
2021-4-22 16:01 - Superficial. - Stata专版
请各位帮忙:安装使用reshape2包提示错误和警告
5 个回复 - 13783 次查看
reshape2包已经安装好了。
通过installed.packages()[,c("Package","Ve
rsion")]可以看到:
reshape2 "
reshape2" "1.4.1"
requi
re("
reshape2")后出现以下错误:
载入需要的程辑包:
reshape2
E
rro
r in ...
2016-6-11 09:30 - cooooocat - R语言论坛
reshape显示我的关键字不唯一
4 个回复 - 1223 次查看
dataex 省份 城市 总行 c2006 c2007 c2008 c2009 c2010
----------------------- copy sta
rting f
rom the next line -----------------------
[CODE]
* Example gene
rated by -dataex-. To install: ssc insta ...
2020-12-28 22:14 - limitlessd - Stata专版
stata中的reshape命令
4 个回复 - 10963 次查看
请教一个stata问题。
横轴变量名:
retu
rn200301,
retu
rn200302,
retu
rn200303,
retu
rn200304,
retu
rn200401,
retu
rn200402,
retu
rn200403,
retu
rn200404·········
retu
rn202001
纵轴第一例为股票的编码
想要用 ...
2020-8-1 21:15 - 不懂就问的 - Stata专版
关于reshape的数据处理
6 个回复 - 1400 次查看
希望得到的结果:
变量PunishmentType中,一个格子内包含了多个样本,希望将其进行拆分,并从wide变成long的形式。
本人使用的命令是:
但结果是系统提示id变量不唯一,本人不知道问题出在哪里,求各位老师指 ...
2021-1-14 22:11 - wslver - Stata专版
关于批量reshape的问题
2 个回复 - 1616 次查看
问题如下:1、我们按照下面的命令,能将宽数据变成长数据。
clea
r
webuse
reshape1
d
rop ue*
reshape long inc, i(id) j(yea
r)
2、我的问题是,怎么用循环语句把inc80的前缀inc提取出来呢?并把它作为暂元处理 ...
2020-7-20 14:17 - yangye823 - Stata专版
reshape转换
1 个回复 - 920 次查看
求助各位大神!city yea
r x y z
A 1
B 1
C 1
D 1
怎么将其转换为long型的?用
reshape long labo
r spc hc u
rb t
ra g
ro fd fin, i(city) j(time)显示我的已经是long了?
2019-10-31 20:52 - l1223344 - Stata专版
stata reshape 面板数据
3 个回复 - 2896 次查看
我用stata的
reshape 处理数据,
.
reshape long DR NDTS,i(id) j(yea
r)
显示???请大神赐教!!!!!我实在是不懂问题出在哪里了?求!!!![/backcolo
r]
(note: j = 2013 2014 2015 2016)
va
riable id does not ...
2019-10-11 17:13 - 15806657653 - Stata专版
reshape long
14 个回复 - 13267 次查看
有如下数据(节选了部分),想从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专版
STATA reshape命令的一些困惑
1 个回复 - 1286 次查看
最近在用
reshape long,也就是宽变长,但是非常非常非常慢,我的数据大概有9000个变量(事先已经set maxva
r),400条obse
rvation,用fast
reshape会提示obse
rvation out of
range,在尝试gathe
r命令,但也很慢,求助各 ...
2019-5-8 10:08 - cassie223 - Stata专版
关于reshape命令丢失一半数据的问题
0 个回复 - 793 次查看
如图所示,这是我的原始数据,最开始时不平衡面板数据,我
reshape wide之后变成上述样式,但是我再
reshape long之后却出现如下情况:
我想问一下,这种情况是怎么回事,为什么会丢失20170601等数据,另外如果将 ...
2019-2-15 21:13 - taaankkie - Stata专版
Reshape2逐个展开数据框的问题
6 个回复 - 1602 次查看
求助,现在有一个数据框:想要按行列逐个展开为一个新的3列数据框,第一列为对应行名,第二列为对应列名,第三列为数值:使用
reshape2的melt函数展开后只能得到Value值的单列求问如果想获得像上图那种三列数据框该怎 ...
2018-10-23 14:35 - zzbb2266 - R语言论坛
如何定义reshape中j?
1 个回复 - 1318 次查看
请教大家:将成人数据和家庭数据合并,先把成人数据由长变宽,用
reshape,
reshape wide pidd,i( fid16) j(t) ,出现如下结果(fid16为家庭编号,pidd为个人编号,t为按家庭编号分组排序号),请问是什么问题,j应取 ...
2018-11-5 15:22 - 小明jill - Stata专版
如何用reshape调整数据格式?
6 个回复 - 4070 次查看
如上图所示,我现在有三维数据(国家、行业、年份,v3表示1995年,依次类推),能否用
reshape命令将其调整成如下图的格式(就是用
reshape long命令调整二维数据后的格式)?或者该用其它命令?
2015-8-4 11:54 - lbh134679 - Stata专版
stata reshape 求助 已经用dataex编辑
2 个回复 - 1002 次查看
[CODE]
* Example gene
rated by -dataex-. To install: ssc install dataex
clea
r
input st
r3 id long(yea
r2001 yea
r2003 yea
r2002 yea
r2004 yea
r2005 yea
r2006 yea
r2007 yea
r2008 yea
r2009 yea
r2010 yea
r2012 ye ...
2018-8-4 21:26 - kissthesnow - Stata专版
reshape 命令问题求助
4 个回复 - 1670 次查看
想将附件中的wide数据转换成long,使用命令
reshape long fdi, i(iso2i iso2j) j(yea
r),在数据量大概为250个以下该命令可以运行,但是数据量达到300个左右时,stata显示图示,请问这是什么问题呢,不知道这是跟数据量 ...
2018-1-31 21:52 - yaolimin123 - Stata专版
关于R语言的应用(reshape2)
0 个回复 - 823 次查看
reshape2:::melt_check(ai
rquality, va
riable.name = "va
riable", value.name = "value")
这句话中[
reshape2:::melt_check[/backcolo
r]]这种是什么用法?
三个“:”表示什么意思啊?
2018-3-21 21:34 - 天之焱 - 数据分析与数据挖掘
stata中reshape编程
1 个回复 - 2357 次查看
在进行宽数据转换长数据时,总会出现
va
riable id does not uniquely identify the obse
rvations
You
r data a
re cu
rrently wide. You a
re pe
rfo
rming a
reshape long. You specified i(Code GOV CEOduality) ...
2016-5-22 10:11 - suxia1226 - Stata专版