根据英文函数说明,我这样写代码:test.hausman<-sphtest(fm,data = a9,index=c("DQ","NF"),listw=gal.mat,spatial.model = "sarar",method = "ML",errors = "BSK"),但是程序报错如下Error in match.arg(spatial.error) : 'arg' must be NULL or a character vector,就是做一个关于ML估计的豪斯曼检验,楼主,知道这是什么回事吗?