PcAux-Package / PcAux

This is the repository for the PcAux project.
GNU General Public License v3.0
4 stars 5 forks source link

Issue when there is only 1 missing value in the idVar #37

Closed ppanko closed 1 year ago

ppanko commented 5 years ago

Here's the reproducible example:

library(PcAux)

data(iris2)

## Here we go...
iris2$ID[1] <- NA

cleanData <- prepData(rawData   = iris2,
                      nomVars   = "Species",
                      ordVars   = "Petal.Width",
                      idVars    = "ID",
                      dropVars  = "Junk",
                      groupVars = "Species")

pcAuxOut <- createPcAux(pcAuxData    = cleanData,
                        nComps       = c(3, 2),
                        interactType = 2)

miOut <- miWithPcAux(rawData = iris2, pcAuxData = pcAuxOut, nImps = 5)

##Error in dataId[idMissPat] <- pcAuxData$idFills[[useId]] :  replacement has length zero
ppanko commented 4 years ago

This is happening because idFills are not created during prepData or createPcAux because cleanData is not triggered in either case.

kylelang commented 1 year ago

This project is no longer actively developed here, so I'm archiving this repository. In preparation thereof, I'm closing all open issues.