楼主: BRshooter0
1621 5

[面板数据求助] 急,stata小白求助 [推广有奖]

  • 0关注
  • 0粉丝

VIP1

小学生

92%

还不是VIP/贵宾

-

威望
0
论坛币
328 个
通用积分
1.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
186 点
帖子
4
精华
0
在线时间
14 小时
注册时间
2019-5-21
最后登录
2021-2-8

楼主
BRshooter0 发表于 2020-4-2 13:30:39 |AI写论文
30论坛币
如图,本stata小白在进行面板数据分析,数据如图共117行,为什么在输入tsset id year会出现这种情况?是样本太少了吗,还是数据或者格式有问题?
TIM图片20200402132629.png

最佳答案

蓝色 查看完整内容

重新安装stata试试 命令没有错 应该是软件安装问题 这是自带命令

沙发
蓝色 发表于 2020-4-2 13:30:40 来自手机
重新安装stata试试
命令没有错
应该是软件安装问题
这是自带命令

藤椅
BRshooter0 发表于 2020-4-2 14:52:21
补张图javascript:;

面板数据.png (15.09 KB)

面板数据.png

板凳
和睦生财 学生认证  发表于 2020-4-2 16:45:41
你是想设定哪个是个体变量,哪个是时间变量吧,用xtset id year这个命令,用于你这个例子就是xtset idcode year

报纸
BRshooter0 发表于 2020-4-2 19:21:03
谢谢大佬,确实是软件的问题

地板
蓝色 发表于 2020-4-2 19:22:05
和睦生财 发表于 2020-4-2 16:45
你是想设定哪个是个体变量,哪个是时间变量吧,用xtset id year这个命令,用于你这个例子就是xtset idcode  ...
tsset 也是没有问题的,等价于xtset。看下面帮助里面的命令语法格式。

[TS] tsset -- Declare data to be time-series data
              (View complete PDF manual entry)
Syntax

    Declare data to be time series

        tsset timevar [, options]
       tsset panelvar timevar [, options]


    Display how data are currently tsset

        tsset
Description

    tsset manages the time-series settings of a dataset.  tsset timevar declares the data in memory to be a time series.  This allows you to use Stata's time-series operators and to analyze your data with the ts commands.  tsset panelvar timevar declares the data to be panel data, also known as cross-sectional time-series data, which contain one time series for each  value of panelvar. This allows you to also analyze your data with the xt commands without having to xtset your data.

    tsset without arguments displays how the data are currently set and sorts the data on timevar or panelvar timevar.

    tsset, clear is a rarely used programmer's command to declare that the data are no longer a time series.



您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-2-9 04:29