我自己的数据也遇到同样问题。我核对原始数据,我在eviews里面一点点试,发现造成 “positive or non-negtive argument to function expected” 造成无法用cross-section weights的是002771,它的earnvar只有2018年一个数据,没有任何变化自然会造成 “positive or non-negtive argument to function expected” ,在sheets("month-2去掉002771")中我把002771删除,用删除以后的样本回归,就没有问题了