Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: stats
See also: descriptive frequency mean var min max quantile

Quantlet: summarize
Description: provides a short summary table (min, max, mean, median standard error) for all columns of a data matrix. An additional vector of name strings can be given to identify columns by names.

Usage: summ=summarize(x{,xvars})
Input:
x n x p matrix, the columns correspond to the variables.
xvars optional, p x 1 string vector, variable names. Note, that only up to 15 characters are used.
Output:
summ string output, containing summary table.

Note:

Example:

library("stats") 

x=read("bank2")

xvars="length"|"l_height"|"r_height"|"u_frame"|"l_frame"|"diagonal"

summarize(x,xvars)

Result:



Contents of summ

[ 1,] "          "

[ 2,] "              Minimum     Maximum        Mean      Median   Std.Error"

[ 3,] "         -------------------------------------------------------------"

[ 4,] "length          213.8       216.3       214.9       214.9     0.37655"

[ 5,] "l_height          129         131      130.12       130.2     0.36103"

[ 6,] "r_height          129       131.1      129.96         130     0.40407"

[ 7,] "u_frame           7.2        12.7      9.4175         9.1      1.4446"

[ 8,] "l_frame           7.7        12.3       10.65        10.6     0.80295"

[ 9,] "diagonal        137.8       142.4      140.48       140.3      1.1523"

[10,] " "


Library: stats
See also: descriptive frequency mean var min max quantile

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Marlene Mueller, 970903
(C) MD*TECH Method and Data Technologies, 21.9.2000