SAMPLING FOR MODEL 'stops_eth' NOW (CHAIN 1).[1] "Error in sampler$call_sampler(args_list[[i]]) : "[2] " c++ exception (unknown reason)"error occurred during calling the sampler; sampling not done
library(rstan)
source("frisks.data.R")
dataList <- c("N","stops","arrests")
stops_eth_poisson.sf1 <- stan(file='stops_eth.stan', data=dataList,
iter=1000, chains=4)
data {
int<lower=1> N;
int<lower=0> stops[N];
vector<lower=0>[N] arrests;
}
transformed data {
vector[N] log_arrests;
log_arrests = log(arrests);
}
parameters {
vector[2] beta;
}
model {
target += poisson_lpmf(stops | beta[1] + beta[2] * log_arrests);
}
data {int<lower=1> N;
int<lower=0> stops[N];
vector<lower=0>[N] arrests;
}
transformed data {
vector[N] log_arrests;
log_arrests = log(arrests);
}
parameters {
vector[2] beta;
}
model {
target += poisson_lpmf(stops | beta[1] + beta[2] * log_arrests);
}
This is a bug people seem to be getting with new RStan installs.
Ben --- is there a fix for this on the way or a diagnosis of what's
going on?