{"action":"created","issue":{"url":"https://api.github.com/repos/bstewart/stm/issues/16","repository_url":"https://api.github.com/repos/bstewart/stm","labels_url":"https://api.github.com/repos/bstewart/stm/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/bstewart/stm/issues/16/comments","events_url":"https://api.github.com/repos/bstewart/stm/issues/16/events","html_url":"https://github.com/bstewart/stm/issues/16","id":160859286,"number":16,"title":" Error for plot.estimateEffect","user":{"login":"methodds","id":7460499,"avatar_url":"https://avatars.githubusercontent.com/u/7460499?v=3","gravatar_id":"","url":"https://api.github.com/users/methodds","html_url":"https://github.com/methodds","followers_url":"https://api.github.com/users/methodds/followers","following_url":"https://api.github.com/users/methodds/following{/other_user}","gists_url":"https://api.github.com/users/methodds/gists{/gist_id}","starred_url":"https://api.github.com/users/methodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/methodds/subscriptions","organizations_url":"https://api.github.com/users/methodds/orgs","repos_url":"https://api.github.com/users/methodds/repos","events_url":"https://api.github.com/users/methodds/events{/privacy}","received_events_url":"https://api.github.com/users/methodds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T10:33:43Z","updated_at":"2016-06-19T17:13:22Z","closed_at":null,"body":"Hi, when trying to plot effect estimates in a model with a content variable an error is raised:\r\n\r\n```\r\n# post_type: factor (4 levels)\r\n# numdate: continuous numeric\r\n# core: dummy\r\n\r\ncomments <- stm(out$documents,out$vocab,K=50, \r\n                  prevalence =~ post_type + s(numdate) * core, \r\n                  content =~ core,\r\n                data=out$meta,\r\n                  max.em.its =150, seed=1337, emtol= 1e-4,\r\n                  init.type='Spectral', verbose=T)\r\n\r\nprep <- estimateEffect(c(12) ~ post_type + s(numdate) * core, \r\n                       comments, metadata=out$meta) # takes 20 minutes\r\n\r\n\r\nError in names(cdata) <- covariate : object 'cdata' not found\r\n```\r\nFrom what I can tell this does not depend on the plot method:\r\n\r\n```\r\nplot.estimateEffect(prep, 'post_type')\r\nError in names(cdata) <- covariate : object 'cdata' not found\r\n)"},"comment":{"url":"https://api.github.com/repos/bstewart/stm/issues/comments/227008733","html_url":"https://github.com/bstewart/stm/issues/16#issuecomment-227008733","issue_url":"https://api.github.com/repos/bstewart/stm/issues/16","id":227008733,"user":{"login":"bstewart","id":577337,"avatar_url":"https://avatars.githubusercontent.com/u/577337?v=3","gravatar_id":"","url":"https://api.github.com/users/bstewart","html_url":"https://github.com/bstewart","followers_url":"https://api.github.com/users/bstewart/followers","following_url":"https://api.github.com/users/bstewart/following{/other_user}","gists_url":"https://api.github.com/users/bstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/bstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bstewart/subscriptions","organizations_url":"https://api.github.com/users/bstewart/orgs","repos_url":"https://api.github.com/users/bstewart/repos","events_url":"https://api.github.com/users/bstewart/events{/privacy}","received_events_url":"https://api.github.com/users/bstewart/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T17:13:22Z","updated_at":"2016-06-19T17:13:22Z","body":"I'm not sure what is happening here.  Perhaps you could send me an example that reproduces the error?"}}
{"actor":{"display_login":"bstewart"}}