glmmadmb错误:超出200个因变量的最大数量

时间:2015-09-14 16:31:52

标签: r

我需要安装一个具有大约500个固定效果的模型。

nb.xx.ff <-glmmadmb(count~Pint-1, 
                    data=dnoNM,
                    family="nbinom")

并且出现以下错误:

## maximum number of depdendent variables of 200 exceeded 
## use gradient_structure::set_NUM_DEPENDENT_VARIABLES(int i);
## to increase the number of dependent variables
## Error in glmmadmb(count ~ Pint - 1, data = dnoNM, family = "nbinom", zeroInflation = TRUE,  : 
##   The function maximizer failed (couldn't find STD file)
## changed working directory to /spin1/users/swihartbj/projects/_SMFA/Pxs_2015_ctrls_only/Rnw/Final/_ilmn5 
## removed temp directory /scratch/Rtmp/Rtmp4iDtvH/glmmADMB2384f4030d4a1 

有没有办法从R来电增加这个?

1 个答案:

答案 0 :(得分:1)

按照建议here将“-ndv 3000”添加到extra.args。只要固定效果的数量是唯一的问题,并且列出的数字(本例中为3000)大于固定效果的数量,这应该有效:

nb.xx.ff <-glmmadmb(count~Pint-1, 
                    data=dnoNM,
                    family="nbinom",
                    extra.args="-ndv 3000")