{"action":"created","issue":{"url":"https://api.github.com/repos/kollerma/robustlmm/issues/10","repository_url":"https://api.github.com/repos/kollerma/robustlmm","labels_url":"https://api.github.com/repos/kollerma/robustlmm/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/kollerma/robustlmm/issues/10/comments","events_url":"https://api.github.com/repos/kollerma/robustlmm/issues/10/events","html_url":"https://github.com/kollerma/robustlmm/issues/10","id":302921795,"number":10,"title":"saving rlmer objects for future use","user":{"login":"garthtarr","id":2189134,"avatar_url":"https://avatars1.githubusercontent.com/u/2189134?v=4","gravatar_id":"","url":"https://api.github.com/users/garthtarr","html_url":"https://github.com/garthtarr","followers_url":"https://api.github.com/users/garthtarr/followers","following_url":"https://api.github.com/users/garthtarr/following{/other_user}","gists_url":"https://api.github.com/users/garthtarr/gists{/gist_id}","starred_url":"https://api.github.com/users/garthtarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garthtarr/subscriptions","organizations_url":"https://api.github.com/users/garthtarr/orgs","repos_url":"https://api.github.com/users/garthtarr/repos","events_url":"https://api.github.com/users/garthtarr/events{/privacy}","received_events_url":"https://api.github.com/users/garthtarr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-07T00:38:03Z","updated_at":"2018-03-08T08:26:45Z","closed_at":null,"author_association":"NONE","body":"With large data sets it can be quite computationally intensive to fit a rlmer model.  I'd like to be able to save a fitted object and load it later.  This is possible and partly works, but the summary method fails on the loaded object but it didn't fail in the session where the object was initially created, so it seems something (no idea what) is lost in the saving process.\r\n\r\nMWE\r\n\r\nThis works OK:\r\n\r\n```r\r\nlibrary(\"robustlmm\")\r\ntest = rlmer(Yield ~ (1|Batch), Dyestuff2, method=\"DASvar\")\r\nsummary(test)\r\nsaveRDS(test, file = \"test.rds\")\r\n```\r\n\r\nWhen I start a new session and load in `test.rds` the print method works, but the summary method gives the error below.\r\n\r\n```r\r\n> x = readRDS(\"test.rds\")\r\n> x\r\nRobust linear mixed model fit by DASvar \r\nFormula: Yield ~ (1 | Batch) \r\n   Data: Dyestuff2 \r\nRandom effects:\r\n Groups   Name        Std.Dev.\r\n Batch    (Intercept) 0.000   \r\n Residual             4.002   \r\nNumber of obs: 30, groups: Batch, 6\r\nFixed Effects:\r\n(Intercept)  \r\n      5.609  \r\n> summary(x)\r\nError in .External(list(name = \"CppMethod__invoke_notvoid\", address = <pointer: 0x0>,  : \r\n  NULL value passed as symbol address\r\n> \r\n```"},"comment":{"url":"https://api.github.com/repos/kollerma/robustlmm/issues/comments/371415365","html_url":"https://github.com/kollerma/robustlmm/issues/10#issuecomment-371415365","issue_url":"https://api.github.com/repos/kollerma/robustlmm/issues/10","id":371415365,"user":{"login":"kollerma","id":488603,"avatar_url":"https://avatars2.githubusercontent.com/u/488603?v=4","gravatar_id":"","url":"https://api.github.com/users/kollerma","html_url":"https://github.com/kollerma","followers_url":"https://api.github.com/users/kollerma/followers","following_url":"https://api.github.com/users/kollerma/following{/other_user}","gists_url":"https://api.github.com/users/kollerma/gists{/gist_id}","starred_url":"https://api.github.com/users/kollerma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kollerma/subscriptions","organizations_url":"https://api.github.com/users/kollerma/orgs","repos_url":"https://api.github.com/users/kollerma/repos","events_url":"https://api.github.com/users/kollerma/events{/privacy}","received_events_url":"https://api.github.com/users/kollerma/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T08:26:45Z","updated_at":"2018-03-08T08:26:45Z","author_association":"OWNER","body":"It looks like that the version of robustbase that you need hasn't been released yet.\r\nTry this:\r\ninstall.packages(\"robustbase\", repos=\"http://R-Forge.R-project.org\")\r\n\r\nYou might be able to save some space by using rlmerRcpp instead of rlmer, but I doubt it'll be much. The calculations for the robust fit are much more involved, so they are always going to be slower and will need more memory."}}
{"actor":{"display_login":"kollerma"}}