Skip to contents

summary_fast summarise a matrix by rows

Usage

summary_fast(A)

Arguments

A

matrix to be summarised

Value

A matrix whose columns are "mean", "sd", "0.025quant", "0.5quant", "0.975quant"

Author

Joaquín Martínez-Minaya jomarminaya@gmail.com

Examples

A <- matrix(rnorm(10000), ncol = 1000)
summary_fast(A)
#>                mean        sd 0.025quant     0.5quant 0.975quant
#>  [1,]  0.0157955205 1.0092800  -2.002622  0.000429432   1.973815
#>  [2,]  0.0039552364 1.0206575  -2.009972 -0.004260543   1.966246
#>  [3,]  0.0530321918 0.9937239  -1.913460  0.025380776   2.003292
#>  [4,] -0.0191166823 0.9777218  -1.850709 -0.054184906   1.980588
#>  [5,]  0.0088222096 0.9787433  -1.888454  0.028041618   1.964160
#>  [6,]  0.0007472874 1.0000058  -1.986263  0.004180798   1.889267
#>  [7,] -0.0929003175 1.0494246  -2.134188 -0.100875943   1.953789
#>  [8,] -0.0333700986 1.0105339  -2.030266 -0.073714128   1.995562
#>  [9,]  0.0492395245 1.0087902  -1.903222  0.079947332   2.069555
#> [10,] -0.0350481797 0.9627453  -1.864707 -0.081830890   1.878572