Description Usage Arguments Details Value Author(s) See Also Examples
Mean imputation
1 | meanimp(mat)
|
mat |
A numerical matrix |
The function implements the unconditional mean imputation on a numerical matrix with missing values, substituting to each missing value the arithmetic mean 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,] NA 1.51178117 0.91897737
[2,] 0.1836433 NA NA
[3,] -0.8356286 -0.62124058 0.07456498
[4,] 1.5952808 -2.21469989 -1.98935170
[5,] 0.3295078 1.12493092 0.61982575
[6,] -0.8204684 -0.04493361 -0.05612874
[7,] 0.4874291 -0.01619026 -0.15579551
[8,] 0.7383247 0.94383621 -1.47075238
[9,] 0.5757814 0.82122120 -0.47815006
[10,] -0.3053884 0.59390132 0.41794156
[,1] [,2] [,3]
[1,] -0.6264538 1.51178117 0.91897737
[2,] 0.1836433 0.38984324 0.78213630
[3,] -0.8356286 -0.62124058 0.07456498
[4,] 1.5952808 -2.21469989 -1.98935170
[5,] 0.3295078 1.12493092 0.61982575
[6,] -0.8204684 -0.04493361 -0.05612874
[7,] 0.4874291 -0.01619026 -0.15579551
[8,] 0.7383247 0.94383621 -1.47075238
[9,] 0.5757814 0.82122120 -0.47815006
[10,] -0.3053884 0.59390132 0.41794156
[,1] [,2] [,3]
[1,] -0.6264538 1.51178117 0.91897737
[2,] 0.1836433 0.38984324 0.78213630
[3,] -0.8356286 -0.62124058 0.07456498
[4,] 1.5952808 -2.21469989 -1.98935170
[5,] 0.3295078 1.12493092 0.61982575
[6,] -0.8204684 -0.04493361 -0.05612874
[7,] 0.4874291 -0.01619026 -0.15579551
[8,] 0.7383247 0.94383621 -1.47075238
[9,] 0.5757814 0.82122120 -0.47815006
[10,] -0.3053884 0.59390132 0.41794156
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.