R在运行lmer时挂着

时间:2018-06-07 00:47:10

标签: r lme4

我尝试使用$(function() { //array storing column names var cName = ['UNITPRICE', 'NAME', 'CODE', 'PRODUCTID']; cName.forEach(function(element, index) { $.post("http://localhost/gentelella-master/production/dbh.php", { price: element }, function(data) { //storing each column data in JSON object if (index == 0) obj1 = $.parseJSON(data); if (index == 1) obj2 = $.parseJSON(data); if (index == 2) obj3 = $.parseJSON(data); if (index == 3) obj4 = $.parseJSON(data); //i don't know how this code works i just copied it from pivottable.js documentation examples var inputFunction = function(callback) { for (z = 0; z < 6; z++) { //when the code reache this callback it keeps throwing errors saying obg1,obj2,obj3,obj4 not defined //the code works and i get the results that i desire , but i don't want to ignore those errors they might miss up my code later callback({ unit_price: obj1[z], name: obj2[z], code: obj3[z], product_id: obj4[z] }); } } $("#datatable-checkbox").pivotUI(inputFunction, { rows: ["product id", "code"], cols: ["name", "unit price"] }); }); }); }); 包中的lmer来运行线性混合模型。 数据框包含lme4并且为14204 obs. of 7 variables。我在MacOS上使用927.9 KB在R studio中运行它。

当我运行以下命令时,R只是挂起......

R version 3.5.0 (2018-04-23) -- "Joy in Playing"

我想知道是否有人知道为什么这会导致R挂起以及我如何处理这个问题。

0 个答案:

没有答案