You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed that some samples were removed if NA were present in the covariates used (reprex below). Perhaps some users would like to know at least as a warning, like in the prepare_data function, before the #8 is solved, I guess. Otherwise, one can still check before including them.
data("trichoptera")
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
trichoptera$Pressure[29:32]<-NA
fit <- PLN(Abundance ~ 1 + Pressure + Temperature, data = trichoptera)
> dim(fitted(fit))
[1] 45 17
> dim(trichoptera$Abundance)
[1] 49 17
> data.frame(
+ fitted = as.vector(fitted(fit)),
+ observed = as.vector(trichoptera$Abundance)
+ )
Error in data.frame(fitted = as.vector(fitted(fit)), observed = as.vector(trichoptera$Abundance)) :
les arguments impliquent des nombres de lignes différents : 765, 833
The text was updated successfully, but these errors were encountered:
@jchiquet may have a different opinion but I think we should stick with lm here. Issue #8 is slightly different: we can handle missing data in the count matrix, not in the covariates.
Hi again,
I just noticed that some samples were removed if
NA
were present in the covariates used (reprex below). Perhaps some users would like to know at least as a warning, like in theprepare_data
function, before the #8 is solved, I guess. Otherwise, one can still check before including them.The text was updated successfully, but these errors were encountered: