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

Error with missing values in the response variable #1

Open
fred021 opened this issue May 16, 2019 · 1 comment
Open

Error with missing values in the response variable #1

fred021 opened this issue May 16, 2019 · 1 comment

Comments

@fred021
Copy link

fred021 commented May 16, 2019

I am fitting a Poisson model using CARbayesST, and as the vignette says, the three functions ST.CARlinear, ST.CARanova, and ST.CARar allow for NA's in the response variable. However, when I have missing values in the response, I get this error:

Error in if (any(y < 0)) stop("negative values not allowed for the 'quasiPoisson' family") :
missing value where TRUE/FALSE needed

Can you please tell me where I am making a mistake?

@fred021
Copy link
Author

fred021 commented May 16, 2019

The issue is solved by running the following code before running the models:
options(na.action = "na.omit")

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