我需要安装一个具有大约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
来电增加这个?
答案 0 :(得分:1)
是
按照建议here将“-ndv 3000”添加到extra.args
。只要固定效果的数量是唯一的问题,并且列出的数字(本例中为3000)大于固定效果的数量,这应该有效:
nb.xx.ff <-glmmadmb(count~Pint-1,
data=dnoNM,
family="nbinom",
extra.args="-ndv 3000")