{"action":"created","issue":{"url":"https://api.github.com/repos/tinglab/mLDM/issues/2","repository_url":"https://api.github.com/repos/tinglab/mLDM","labels_url":"https://api.github.com/repos/tinglab/mLDM/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tinglab/mLDM/issues/2/comments","events_url":"https://api.github.com/repos/tinglab/mLDM/issues/2/events","html_url":"https://github.com/tinglab/mLDM/issues/2","id":181025870,"number":2,"title":"Missing values and NaN's error","user":{"login":"hoangtt1989","id":13205965,"avatar_url":"https://avatars.githubusercontent.com/u/13205965?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangtt1989","html_url":"https://github.com/hoangtt1989","followers_url":"https://api.github.com/users/hoangtt1989/followers","following_url":"https://api.github.com/users/hoangtt1989/following{/other_user}","gists_url":"https://api.github.com/users/hoangtt1989/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangtt1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangtt1989/subscriptions","organizations_url":"https://api.github.com/users/hoangtt1989/orgs","repos_url":"https://api.github.com/users/hoangtt1989/repos","events_url":"https://api.github.com/users/hoangtt1989/events{/privacy}","received_events_url":"https://api.github.com/users/hoangtt1989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-04T22:54:57Z","updated_at":"2016-10-16T22:25:35Z","closed_at":null,"body":"I'm attempting to use `mLDM` for OTU count data. My OTU count matrix is of dimension `3122*1249` and my environment factor matrix is of dimension `3122*25`. For the EF matrix, I ensured that the categorical variables were coded as 0 - 1 like in the Colorectal cancer example. There are no missing values in either of my matrices. However, when I attempt to use `mLDM`, I get the following error:\r\n\r\n`Error: missing values and NaN's not allowed if 'na.rm' is FALSE`\r\n\r\nDo you have any idea why I might be getting this error? I tried reducing the number of OTUs to as few as 70 and I am still getting the error."},"comment":{"url":"https://api.github.com/repos/tinglab/mLDM/issues/comments/254079620","html_url":"https://github.com/tinglab/mLDM/issues/2#issuecomment-254079620","issue_url":"https://api.github.com/repos/tinglab/mLDM/issues/2","id":254079620,"user":{"login":"hoangtt1989","id":13205965,"avatar_url":"https://avatars.githubusercontent.com/u/13205965?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangtt1989","html_url":"https://github.com/hoangtt1989","followers_url":"https://api.github.com/users/hoangtt1989/followers","following_url":"https://api.github.com/users/hoangtt1989/following{/other_user}","gists_url":"https://api.github.com/users/hoangtt1989/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangtt1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangtt1989/subscriptions","organizations_url":"https://api.github.com/users/hoangtt1989/orgs","repos_url":"https://api.github.com/users/hoangtt1989/repos","events_url":"https://api.github.com/users/hoangtt1989/events{/privacy}","received_events_url":"https://api.github.com/users/hoangtt1989/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T22:25:35Z","updated_at":"2016-10-16T22:25:35Z","body":"Hi, this is what happens (`OTU` is my count matrix and `sam_des` is my environmental factor matrix):\r\n\r\n`> mod <- mLDM(OTU, sam_des, Z_mean = 5, verbose = T)`\r\n`Error: missing values and NaN's not allowed if 'na.rm' is FALSE`\r\n\r\nAnd there are no missing values in either matrix:\r\n\r\n`> any(is.na(OTU))`\r\n`[1] FALSE`\r\n`> any(is.na(sam_des))`\r\n`[1] FALSE`"}}
{"actor":{"display_login":"hoangtt1989"}}