{"action":"opened","issue":{"url":"https://api.github.com/repos/luisdamiano/gsoc17-hhmm/issues/1","repository_url":"https://api.github.com/repos/luisdamiano/gsoc17-hhmm","labels_url":"https://api.github.com/repos/luisdamiano/gsoc17-hhmm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/luisdamiano/gsoc17-hhmm/issues/1/comments","events_url":"https://api.github.com/repos/luisdamiano/gsoc17-hhmm/issues/1/events","html_url":"https://github.com/luisdamiano/gsoc17-hhmm/issues/1","id":393465444,"node_id":"MDU6SXNzdWUzOTM0NjU0NDQ=","number":1,"title":" main-sim.R","user":{"login":"isaactarume","id":18483341,"node_id":"MDQ6VXNlcjE4NDgzMzQx","avatar_url":"https://avatars0.githubusercontent.com/u/18483341?v=4","gravatar_id":"","url":"https://api.github.com/users/isaactarume","html_url":"https://github.com/isaactarume","followers_url":"https://api.github.com/users/isaactarume/followers","following_url":"https://api.github.com/users/isaactarume/following{/other_user}","gists_url":"https://api.github.com/users/isaactarume/gists{/gist_id}","starred_url":"https://api.github.com/users/isaactarume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaactarume/subscriptions","organizations_url":"https://api.github.com/users/isaactarume/orgs","repos_url":"https://api.github.com/users/isaactarume/repos","events_url":"https://api.github.com/users/isaactarume/events{/privacy}","received_events_url":"https://api.github.com/users/isaactarume/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-21T13:50:17Z","updated_at":"2018-12-21T13:50:17Z","closed_at":null,"author_association":"NONE","body":"gsoc17-hhmm/tayal2009/main-sim.R\r\n\r\nHi there\r\nAm trying to re run the simulations you supposed did and l keep on getting the error as below any ideas\r\n\r\n> # Model estimation --------------------------------------------------------\r\n> rstan_options(auto_write = TRUE)\r\n> options(mc.cores = parallel::detectCores())\r\n> stan.model = 'tayal2009/stan/hhmm-tayal2009.stan'\r\n> stan.data = list(\r\n+   T = T.length,\r\n+   K = K,\r\n+   L = L,\r\n+   G = G,\r\n+   g = g[dataset$z],\r\n+   x = ifelse(dataset$x < 10, dataset$x, dataset$x - 9)\r\n+ )\r\nError: object 'G' not found\r\n> stan.fit <- stan(file = stan.model,\r\n+                  model_name = stan.model,\r\n+                  data = stan.data, verbose = T,\r\n+                  iter = n.iter, warmup = n.warmup,\r\n+                  thin = n.thin, chains = n.chains,\r\n+                  cores = n.cores, seed = n.seed)#w, init = init_fun)\r\n\r\nTRANSLATING MODEL 'tayal2009/stan/hhmm-tayal2009.stan' FROM Stan CODE TO C++ CODE NOW.\r\nsuccessful in parsing the Stan model 'tayal2009/stan/hhmm-tayal2009.stan'.\r\n\r\nCHECKING DATA AND PREPROCESSING FOR MODEL 'tayal2009/stan/hhmm-tayal2009.stan' NOW.\r\n\r\nCOMPILING MODEL 'tayal2009/stan/hhmm-tayal2009.stan' NOW.\r\n\r\n\r\nSTARTING SAMPLER FOR MODEL 'tayal2009/stan/hhmm-tayal2009.stan' NOW.\r\nError in new_CppObject_xp(fields$.module, fields$.pointer, ...) : \r\n  Exception: variable does not exist; processing stage=data initialization; variable name=sign; base type=int  (in 'model6118615d1dc6_tayal2009_stan_hhmm_tayal2009_stan' at line 12)\r\n\r\nIn addition: Warning message:\r\nIn FUN(X[[i]], ...) : data with name sign is not numeric and not used\r\nfailed to create the sampler; sampling not done"}}
{"actor":{"display_login":"isaactarume"}}