cran / GLMMadaptive

:exclamation: This is a read-only mirror of the CRAN R package repository. GLMMadaptive — Generalized Linear Mixed Models using Adaptive Gaussian Quadrature. Homepage: https://drizopoulos.github.io/GLMMadaptive/, https://github.com/drizopoulos/GLMMadaptive Report bugs for this package: https://github.com/drizopoulos/ ...
0 stars 0 forks source link

Possible to look at an error from potentially mixed_fit.R or Fit_Funs.R? #1

Open bradleymecham opened 5 years ago

bradleymecham commented 5 years ago

Hello,

First off, thank you for this amazing library! It is so helpful, and it's also vital for the research we're doing. We really appreciate you making it available!!

Today I changed a little bit of my model/data and am now getting an error that looks like this:

Error in if (any(zero_ind <- p_yb == 0)) { : missing value where TRUE/FALSE needed.

Unfortunately, I get this error even if I download and build the library directly from GitHub. And so I searched to discover how it could be possible for the statement "zero_ind <- p_yb == 0.0" (found on line 133 in mixed_fit.R and on lines 32 and 74 in Fit_Funs.R) to return only NA or a list of NAs. If p_yb were all NAs, "any" would also return NA and the "if" statement would fail. Do you know how it is possible for p_yb to consist entirely of NAs? Or is there a recommended action to take when you have NAs in p_yb? Or as an alternative, can you catch the error before this test, perhaps, and help me know what to correct? I'd love to fix my data, but I'm not entirely sure what is wrong. Any chance you could take a look?

Thank you!!

Bradley

gaborcsardi commented 5 years ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file.

bradleymecham commented 5 years ago

My humblest apologies. I didn't realize I had posted here--it must have been late. Thank you for your reply!!

Bradley