楼主: lovezxx366
3740 1

[编程问题求助] 求助stata如何计算面板数据的转移矩阵? [推广有奖]

  • 3关注
  • 28粉丝

无业游民

已卖:8份资源

学术权威

40%

还不是VIP/贵宾

-

威望
2
论坛币
13718 个
通用积分
5172.5527
学术水平
452 点
热心指数
555 点
信用等级
379 点
经验
123242 点
帖子
7237
精华
1
在线时间
4346 小时
注册时间
2008-2-26
最后登录
2025-12-9

初级热心勋章 初级信用勋章 中级热心勋章 初级学术勋章 中级信用勋章 高级热心勋章

楼主
lovezxx366 发表于 2016-1-24 11:06:11 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
今有以面板数据     hhid为农户代码,year为年,worker为务工状况(1为务工,0为非务工)

  

hhid

  

year



worker



10001



2009



1



10001



2011



0



10002



2009



0



10002



2011



1



10003



2009



1



10003



2011



1



10004



2009



0



10004



2011



0



10005



2009



0



10005



2011



1





求问怎么通过stata,计算转移矩阵?

转移矩阵


  
  

2011



2009



务工



非务工



务工



1



1



非务工



2



1




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:求助stata Stata tata 面板数据 worker 如何 2011

回帖推荐

蓝色 发表于2楼  查看完整内容

Title [XT] xttab -- Tabulate xt data Syntax xttab varname xttrans varname [, freq] A panel variable must be specified; use xtset. by is allowed with xttab and xttrans; see [D] by. Menu xttab Statistics > Longitudinal/panel data > Setup and utilities > Tabulate xt data xttrans Statistics > Longitudinal/panel d ...
好好学习 天天向上
有事向人大经济论坛提问 没事逛人大经济论坛

沙发
蓝色 发表于 2016-1-24 11:55:00
Title

    [XT] xttab -- Tabulate xt data


Syntax

        xttab varname [if]

        xttrans varname [if] [, freq]

    A panel variable must be specified; use xtset.
    by is allowed with xttab and xttrans; see [D] by.



Menu

    xttab

        Statistics > Longitudinal/panel data > Setup and utilities > Tabulate xt data

     xttrans

        Statistics > Longitudinal/panel data > Setup and utilities > Report transition probabilities


Description

    xttab, a generalization of tabulate oneway, performs one-way tabulations and decomposes counts into between and
    within components in panel data.

    xttrans, another generalization of tabulate oneway, reports transition probabilities (the change in one
    categorical variable over time).



Option

        +------+
    ----+ Main +-----------------------------------------------------------------------------------------------------

    freq, allowed with xttrans only, specifies that frequencies as well as transition probabilities be displayed.


Examples

    Setup
        . webuse nlswork
        . xtset id year

    xttab
        . xttab msp
        . xttab race

    xttrans
        . xttrans msp
        . xttrans msp, freq
已有 1 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
lovezxx366 + 5 + 1 + 1 + 1 感谢蓝色版主的好方法!

总评分: 论坛币 + 5  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 12:40