Hi there, I found the following error when trying to run a binomial spatial regression using a data frame. Not sure what is the problem.
My code is:
m_glmmf <- glmmfields(cbind(y, trial - y)~X, data = dta$df, time = NULL,
family = binomial(link = "logit"),
lat = "lat", lon = "lon", nknots = 12,
iter = 2000, chains = 2, prior_beta = student_t(3, 0, 5),
prior_intercept = student_t(3, 0, 5),
covariance = "exponential",
control = list(adapt_delta = 0.95))
and the error I got:
Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) :
Exception: mismatch in dimension declared and found in context; processing stage=data initialization; variable name=stationID; position=0; dims declared=(400); dims found=(200) (in 'model_glmmfields' at line 6)
Hi there, I found the following error when trying to run a binomial spatial regression using a data frame. Not sure what is the problem.
My code is:
m_glmmf <- glmmfields(cbind(y, trial - y)~X, data = dta$df, time = NULL, family = binomial(link = "logit"), lat = "lat", lon = "lon", nknots = 12, iter = 2000, chains = 2, prior_beta = student_t(3, 0, 5), prior_intercept = student_t(3, 0, 5), covariance = "exponential", control = list(adapt_delta = 0.95))
and the error I got: Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) : Exception: mismatch in dimension declared and found in context; processing stage=data initialization; variable name=stationID; position=0; dims declared=(400); dims found=(200) (in 'model_glmmfields' at line 6)