Dear all,
I ran my stan model (attached) on my Mac computer and it runs without any errors. However when I ran the exact same model on my windows, it throws the following exception. It says the variable "tc" does not exist but I checked and the variable tc is being based to stan and it is not empty. Would really appreciate it if anyone could help point me in the direction as to what could be wrong as it seems weird that it works on one platform but not the other. Thank you in advance.
C:/Users/SimulationPC/Documents/R/win-library/3.3/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
C:/Users/SimulationPC/Documents/R/win-library/3.3/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:17: warning: 'void stan::math::set_zero_all_adjoints()' defined but not used [-Wunused-function]
static void set_zero_all_adjoints() {
^
Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) :
variable does not exist; processing stage=data initialization; variable name=tc; base type=matrix_d
In addition: Warning messages:
1: In
is.na(x) :
is.na() applied to non-(list or vector) of type 'NULL'
2: In FUN(X[[i]], ...) : data with name tc is not numeric and not used
failed to create the sampler; sampling not done
Stan model 'bc' does not contain samples.
starting run
Error in 1:numrealize : argument of length