我想知道为什么我的固定效果回归无法正常工作。
我的代码如下:
$(document).on('click', '#search', function(e) {
e.preventDefault();
e.stopPropagation();
var t = $(e.target);
if (typeof t.prop('alreadyClicked') === 'undefined') {
t.prop('alreadyClicked', 1);
that._getEmployeeProfile();
} else $('searchlist').modal('show');
});
sfeL=felm(sätzegesp~TTRverf,spieler|0|0, data=datregT)
是数字的向量,sätzegesp
是虚拟变量,固定效果变量TTRverf
是数字的向量,指示每个人的ID。
不幸的是,我得到了错误
运算符仅适用于数字,逻辑或复杂类型
答案 0 :(得分:1)
我对felm()
不熟悉,但是通常我们使用类似y ~ x1 + x2 + .. + xn
这样的公式,而不是y ~ x1, x2, ... xn
。那可能是问题所在。您可以在lfe软件包here的文档中的示例中看到它。
所以尝试使用
sfeL <- felm(sätzegesp ~ TTRverf + spieler|0|0, data= datregT)