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'm trying to impute missing data from a highly overdispersed and zero-inflated count variable and came across your package.
After failing to use the 'gamlssZIP' on my data I tried to run the example from the help page and it seems to fail too (although there are no error messages), as there are no imputed values for X.2 and X.3 but only NAs when I do imputed.sets$imp$X.2.
I asked a colleague to try to run the example and it worked on his computer, which had the same package versions loaded but just differed by the fact that it's 64-bit Windows while mine is 32-bit.
I then asked him to run the function on a subset of my data but he got the same issue of having 'NA' instead of imputed values.
Below is the code I used and my sessionInfo() (I'm not attaching the data on GitHub, but can maybe send a subset privately if I get the authorization).
Hello,
I'm trying to impute missing data from a highly overdispersed and zero-inflated count variable and came across your package.
After failing to use the 'gamlssZIP' on my data I tried to run the example from the help page and it seems to fail too (although there are no error messages), as there are no imputed values for X.2 and X.3 but only NAs when I do
imputed.sets$imp$X.2
.I asked a colleague to try to run the example and it worked on his computer, which had the same package versions loaded but just differed by the fact that it's 64-bit Windows while mine is 32-bit.
I then asked him to run the function on a subset of my data but he got the same issue of having 'NA' instead of imputed values.
Below is the code I used and my
sessionInfo()
(I'm not attaching the data on GitHub, but can maybe send a subset privately if I get the authorization).Thanks in advance for your help!
Thomas
sub_hydrat <- read.table("Stats_Hydratation/sub_data_Thomas.csv", header = TRUE, sep = ";")
head(sub_hydrat)
apply(sub_hydrat, 2, function(x){any(is.na(x))})
only GPAQ_ptotal has missing values
init_im <- mice(sub_hydrat, maxit=0, print=F)
im_pred <- init_im$predictorMatrix
im_pred[c("date_inclu", "FUP_irt", "irt", "FUP_deces", "deces", "conso_eau", "conso_eau_cls", "SEXE", "region_new", "AGEI", "origine_fac", "saison_fac", "tabac_fac", "neph_type_fac", "stadeincb", "fluide_ss_eau", "dfgin"),] <- 0
ZI_meth <- init_im$method
ZI_meth["GPAQ_ptotal"] <- "gamlssZIP"
im_ZIP <- mice(sub_hydrat, m = 1, maxit = 2, seed = 300119, meth = ZI_meth, pred = im_pred, n.cyc = 1, bf.cyc = 1, cyc = 1)
im_ZIP$imp$GPAQ_ptotal
gives a vector of NA instead of imputed data ...`
The text was updated successfully, but these errors were encountered: