[R] Table of basic descriptive statistics like SPSS
Jim Lemon
jim at bitwrit.com.au
Wed Mar 19 11:15:59 CET 2008
Just to forestall confusion amongst those who would like to use one of
the functions called "describe"...
Hmisc package - describe
numeric
name
count of observations
count of missing values
count of unique values
mean
seven quantiles
five lowest and highest values
discrete (factor or numeric with <= 10 unique values) -
as for numeric, but
no mean, quantiles or low/high values and
including a frequency/percent display for each value.
psych package - describe
item name
item number
number of valid cases
mean
standard deviation
median
mad: median absolute deviation (from the median)
minimum
maximum
skew (optional)
kurtosis (optional)
standard error
prettyR package - describe
numeric
name
mean
median
var
sd
valid.n
the above are the defaults - the user can specify the name(s) of any
function(s) as an argument to the function to customize the display.
factor
name
count for each value
percent for each value
modal value
count of missing values
logical
name
count of FALSE
count of TRUE
percent of TRUE
count of missing values
Have fun
Jim
More information about the R-help
mailing list