search for: imputationmethod

Displaying 5 results from an estimated 5 matches for "imputationmethod".

2009 Sep 09
1
Package that does not work until I re write the exactly the same code
...rizLongData" # attr(,"package") # [1] "kml" getMethod("kml","ClusterizLongData") # Method Definition: # # function (Object, nbClusters = 2:6, nbRedrawing = 20, saveFreq = 100, # maxIt = 200, trajMinSize = 2, print.cal = FALSE, print.traj = FALSE, # imputationMethod = "copyMean", distance, power = 2, centerMethod = meanNA, # startingCond = "allMethods", distanceStartingCond = "euclidean", # ...) #{ # nbIdFull <- nrow(Object["traj"]) # ...... [[[The full code is available below]]] # } # <environment: namesp...
2004 Jul 21
1
function ms
Dear R users, I am using the MICE package. Specifically, at some point in my code I have imp2=mice(PoptotalMICE,imputationMethod="logreg2") And R returns... iter imp variable 1 1 MICEYError in logitreg(xobs, yobs, intercept=F) : couldn't find function "ms" I have been looking for this ms function on the web, hoping it was just a matter of downloading a package. I didn't find an...
2012 Oct 19
0
impute multilevel data in MICE
...0 > for(i in 1:5)pred[i,]=c(rep(0,5),rep(2,8),0,0,-2,1,2) > imp=mice(bhrm,meth=c(rep("2l.norm",5),rep("",8),rep("2lonly.norm",2),"","",""),pred=pred,maxit=10,print=F) Error in .imputation.level2(y = y, ry = ry, x = x, type = type, imputationMethod = "norm", : define for 2lonly imputation one and only grouping variable with type=-2 > imp=mice(bhrm,meth=c(rep("2l.norm",5),rep("",8),rep("2lonly.pmm",2),"","",""),pred=pred,maxit=10,print=F) Error in .imputation.level2(y...
2009 Apr 24
1
Multiple Imputation in mice/norm
I'm trying to use either mice or norm to perform multiple imputation to fill in some missing values in my data. The data has some missing values because of a chemical detection limit (so they are left censored). I'd like to use MI because I have several variables that are highly correlated. In SAS's proc MI, there is an option with which you can limit the imputed values that are
2011 Apr 01
0
package MICE, squeeze function, calling several variables at once
...all(is.na(x)))]remove(dfPtemp, dfQtemp) NewPrimal <- data.frame(c(dfPZ, dfQ, dfP, dfDV), row.names = NULL, check.rows = F, check.names = F) remove(dfPZ, dfQ, dfP, dfDV) library(mice)# setting up the default settings for the imputationini <- mice(NewPrimal, seed = 52275, imputationMethod = "norm", maxit=0, pred = quickpred(NewPrimal, mincor = 0.25, minpuc = 0.95, include = c("blnNewYearsDay", "blnValentinesDay", "blnStPatricksDay", &qu...