Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem error when running Binomial regression #10

Open
m-moinuddin opened this issue Dec 23, 2020 · 0 comments
Open

Problem error when running Binomial regression #10

m-moinuddin opened this issue Dec 23, 2020 · 0 comments

Comments

@m-moinuddin
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant