Description Usage Arguments Details Value Author(s) See Also Examples
Mode imputation
1 | modeimp(mat)
|
mat |
A matrix of categorical or ordinal values, coded as integer values (1, 2, 3, ...) |
The function implements the mode imputation on a matrix of categorical or ordinal data with missing values. The function substitutes to each missing value the mode of the corresponding variable.
The imputed matrix
Alessandro barbiero, Giancarlo Manzi, Pier Alda Ferrari
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Loading required package: homals
Loading required package: sampling
Loading required package: mvtnorm
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE
3: .onUnload failed in unloadNamespace() for 'rgl', details:
call: fun(...)
error: object 'rgl_quit' not found
[,1] [,2] [,3]
[1,] 2 1 NA
[2,] 2 1 1
[3,] 3 3 3
[4,] 4 2 1
[5,] 1 4 2
[6,] 4 2 2
[7,] 4 3 1
[8,] 3 4 2
[9,] NA 2 4
[10,] NA 4 2
[,1] [,2] [,3]
[1,] 2 1 4
[2,] 2 1 1
[3,] 3 3 3
[4,] 4 2 1
[5,] 1 4 2
[6,] 4 2 2
[7,] 4 3 1
[8,] 3 4 2
[9,] 3 2 4
[10,] 1 4 2
[,1] [,2] [,3]
[1,] 2 1 4
[2,] 2 1 1
[3,] 3 3 3
[4,] 4 2 1
[5,] 1 4 2
[6,] 4 2 2
[7,] 4 3 1
[8,] 3 4 2
[9,] 3 2 4
[10,] 1 4 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.