全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 HLM专版
1529 1
2014-04-13

I have a dataset with 1206 deputies from two different chambers (1998 and 2002, respectively). In addition, there are 18 parties, and some deputies are in both chambers (the ones who were reelected). I am interested in the relation between party discipline (in a scale from 0 to 100) and the probability of geting appointed as party leader (0 or 1), but I am also interested in separate estimates for each party.

A classmate told me that the following mixed effect model would be appropriate, but I don't know what to do with the correlation within subjects:

model <- glmer(leader ~ discipline + (1 + discipline|chamber:party),                data, family=binomial)

What is the structure of these data and which model would be appropriate in this case (using R)?




二维码

扫码加我 拉你入群

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

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

全部回复
2014-4-13 11:40:12
Gelman and Hill (2007) say that there is nothing wrong with having groups with few individuals (even when there is only one). But I am not sure whether I can add an intercept for the deputies or not.
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群