比较模型'秩缺陷模型矩阵'错误

时间:2016-02-01 13:16:48

标签: r gee

我必须制作compar.gee模型,但它会给出错误。我的数据框已满,没有任何NA。这是代码:

 gee1<-compar.gee(vysvetlovana~mat[,5]+mat[,6]+mat[,7]+mat[,8]+mat[,10]+mat[,1
 1]+mat[,12]+mat[,13]+mat[,14]+mat[,15]+mat[,16]+mat[,17]+mat[,18]+mat[,19]+ma
 t[,20]+mat[,21]+mat[,22]+mat[,23]+mat[,24]+mat[,25]+mat[,26]+mat[,27]+mat[,28
 ]+mat[,29]+mat[,30]+mat[,31]+mat[,32]+mat[,33]+mat[,34]+mat[,35]+mat[,36]+mat
 [,37]+mat[,38]+mat[,39]+mat[,40]+mat[,41]+mat[,42]+mat[,43]+mat[,44]+mat[,45]
 +mat[,46]+mat[,47]+mat[,48]+mat[,49]+mat[,50]+mat[,51]+mat[,52]+mat[,53]+mat[
 ,54]+mat[,55]+mat[,56]+mat[,57]+mat[,58]+mat[,59]+mat[,60]+mat[,61]+mat[,62]+
 mat[,63]+mat[,64]+mat[,65]+mat[,66]+mat[,67]+mat[,68]+mat[,69]+mat[,70]+mat[,
 71]+mat[,72]+mat[,73]+mat[,74]+mat[,75]+mat[,76]+mat[,77]+mat[,78]+mat[,79]+m
 at[,80],phy=tree,family=binomial(link="logit"))

 Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27
 Error in gee(vysvetlovana ~ mat[, 5] + mat[, 6] + mat[, 7] + mat[, 8]   +  : 
 rank-deficient model matrix

很多建议!

1 个答案:

答案 0 :(得分:0)

谢谢!我尝试过这个。

变量中有一些where s.course_abbreviation=ua.'"+val1+"' ,这可能是因为某些变量的高度相关性。