楼主: lovezxx366
3097 1

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

  • 3关注
  • 28粉丝

无业游民

学术权威

39%

还不是VIP/贵宾

-

威望
2
论坛币
13652 个
通用积分
5169.9863
学术水平
452 点
热心指数
555 点
信用等级
379 点
经验
106067 点
帖子
7283
精华
1
在线时间
4188 小时
注册时间
2008-2-26
最后登录
2024-5-5

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

+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
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-6 00:11