Closed drewyallop closed 9 years ago
Thanks again. Sorry about these issues, in the further models you won't find so many issues. Here I separated the model code, data, and the R script in separate files and forgot to link the data correctly in the R script. It is fixed now!
Thank you. Drew
Sent from my iPad
On Dec 22, 2014, at 16:54, neekro notifications@github.com wrote:
Thanks again. Sorry about these issues, in the further models you won't find so many issues. Here I separated the model code, data, and the R script in separate files and forgot to link the data correctly in the R script. It is fixed now!
— Reply to this email directly or view it on GitHub.
Does not plot. Console ...
clears workspace:
Attaching package: ‘inline’
The following object is masked from ‘package:Rcpp’:
rstan (Version 2.5.0, packaged: 2014-10-22 14:19:22 UTC, GitRev: e52c66f42e81)
TRANSLATING MODEL 'Survey_model' FROM Stan CODE TO C++ CODE NOW. COMPILING THE C++ CODE FOR MODEL 'Survey_model' NOW. In file included from file29b37e27a154.cpp:466: In file included from /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include/rstan/rstaninc.hpp:3: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include/rstan/stan_fit.hpp:732:15: warning: unused variable 'return_code' [-Wunused-variable] int return_code = stan::common::do_bfgs_optimize(model, lbfgs, base_rng, ^ /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include/rstan/stan_fit.hpp:796:15: warning: unused variable 'return_code' [-Wunused-variable] int return_code = stan::common::do_bfgs_optimize(model, bfgs, base_rng, ^ /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include/rstan/stan_fit.hpp:616:14: warning: unused variable 'init_log_prob' [-Wunused-variable] double init_log_prob; ^ In file included from file29b37e27a154.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include//stansrc/stan/model/model_header.hpp:16: In file included from /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include//stansrc/stan/agrad/rev.hpp:5: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include//stansrc/stan/agrad/rev/chainable.hpp:87:17: warning: 'static' function 'set_zero_all_adjoints' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] static void set_zero_all_adjoints() { ^ In file included from file29b37e27a154.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include//stansrc/stan/model/model_header.hpp:23: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rstan/include//stansrc/stan/io/dump.hpp:26:14: warning: function 'product' is not needed and will not be emitted [-Wunneeded-internal-declaration] size_t product(std::vector dims) {
^
5 warnings generated.
SAMPLING FOR MODEL 'Survey_model' NOW (CHAIN 1).
Iteration: 1 / 4000 0% Iteration: 400 / 4000 10% Iteration: 800 / 4000 20% Iteration: 1200 / 4000 30% Iteration: 1600 / 4000 40% Iteration: 2000 / 4000 50% Iteration: 2001 / 4000 50% Iteration: 2400 / 4000 60% Iteration: 2800 / 4000 70% Iteration: 3200 / 4000 80% Iteration: 3600 / 4000 90% Iteration: 4000 / 4000 100%
Elapsed Time: 13.5233 seconds (Warm-up)
15.1188 seconds (Sampling)
28.6422 seconds (Total)