When I run the fit_nyc_bym2.R script, it first fails because the variable clipped_nyc_subset_shp (in line 15) is not defined. After commenting that out, the call to sampling (in line 31) fails with:
Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) :
Exception: variable does not exist; processing stage=data initialization; variable name=N; base type=int (in 'model15d849c4f0f_bym2_offset_only' at line 3)
The variable N exists and is of type int, which is, IIUC, what the bym2_offset_only.stan model expects.
When I run the
fit_nyc_bym2.R
script, it first fails because the variableclipped_nyc_subset_shp
(in line 15) is not defined. After commenting that out, the call tosampling
(in line 31) fails with:The variable
N
exists and is of type int, which is, IIUC, what thebym2_offset_only.stan
model expects.