Description Usage Arguments Value Examples
Impute missing data via MS3FA
1 | mS3faImpute(params, testInput, testOutput)
|
params |
parameters of a fitted MS3FA |
testInput |
test input data; can contain NAs; error if a full row (input+output) is NA |
testOutput |
train output data; can contain NAs; error if a full row (input+output) is NA |
a list with two elements: testInput with NAs imputed, testOutput with NAs imputed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | houseCopy <- house
houseCopy[1:10,2:3] <- NA
houseCopy[11:20,1] <- NA
params <- mS3faFit(trainInput=houseCopy[,2:3,drop=FALSE],
trainOutput=houseCopy[,1,drop=FALSE],
params=NULL,
type="ppca",
lambdaRidge=0,
epsilon=1e-10,
maxIterations=100,
stopType="objfn",
turboEmMethods=NULL)
result <- mS3faImpute(params=params,
testInput=houseCopy[,2:3,drop=FALSE],
testOutput=houseCopy[,1,drop=FALSE])
result
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.