楼主: Trevor
1543 1

[讨论]Multilevel Model with Time-Varying Predictor using Stata? [推广有奖]

  • 1关注
  • 4粉丝

副教授

26%

还不是VIP/贵宾

-

TA的文库  其他...

Probability NewOccidental

RapidMiner NewOccidental

Machine Learning

威望
1
论坛币
3388 个
通用积分
0.4274
学术水平
25 点
热心指数
17 点
信用等级
24 点
经验
5231 点
帖子
414
精华
2
在线时间
176 小时
注册时间
2005-5-4
最后登录
2024-4-7

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
Hi all,

I'm trying to figure out how to set-up a multilevel model to predict monthly health outcomes with a time-varying predictor of interest using Stata?

The model is specified as follows:

xtmixed nopregrate i.naics1 i.naics1#c.rollingunemp i.disabyear i.disabmonth || naics1: || unique: ,res(ar 1,t(yearmonth2))


Variables and data structure
  • nopregrate is a monthly disability outcome
  • yearmonth2 is a time variable from 1 to 60 represent each month over 5 years
  • i.disabyear and i.disabmonth represent months years 1 to 5 and months 1 to 12, respectively.
  • (i prefix indicates a dummy variable in STATA)
  • Unique is the employer id.
  • i.naics1 is a series of dummy variables for 12 industry sectors
  • yearmonth2 and i.naics together as associated with a unique monthly unemployment rate (60 timepoints by 12 naics codes).
  • i.naics1#c.rollingunemp interacts the sector dummies with their corresponding continuous measure of rolling unemployment rate for each of the 60 time periods.

What's tripping me up is the time-varying aspect of the unemployment rate,  and time-varying rates are nested by industry.  NAICS is the industry id code.  It seems there should be a time-varying slope specified across the industry and time levels for the effect of industry sector on the relationship between the monthly unemployment rate and the monthly disability outcome (over the 60 time points).  The levels in the model are 12 industry sectors, 10520 employers (unique is employer id), and the observational level of 225468 observations. There is an unbalanced structure because of missing values over time else we might expect 631,200 observations (60 time points X 10520 = 631,200).  I'm having trouble following the STATA syntax and have a sense that the time variation is not being handled correctly in the model, but I don't have any alternative STATA syntax to offer.  




二维码

扫码加我 拉你入群

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

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

关键词:Multilevel predictor predict varying model disability represent specified interest monthly

沙发
monsterll 发表于 2014-1-13 17:19:17 |只看作者 |坛友微信交流群
好喜欢楼主,力挺!
已有 1 人评分论坛币 收起 理由
Lisrelchen + 20 鼓励积极发帖

总评分: 论坛币 + 20   查看全部评分

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

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

GMT+8, 2024-4-20 02:05