Re: [R] Table of basic descriptive statistics like SPSS

From: Jim Lemon <>
Date: Wed, 19 Mar 2008 21:15:59 +1100

Just to forestall confusion amongst those who would like to use one of the functions called "describe"...

Hmisc package - describe
  count of observations
  count of missing values
  count of unique values
  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
  standard deviation
  mad: median absolute deviation (from the median)   minimum

  skew	(optional)
  kurtosis	(optional)

  standard error

prettyR package - describe
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
  count for each value
  percent for each value
  modal value
  count of missing values
  count of FALSE
  count of TRUE
  percent of TRUE
  count of missing values

Have fun

Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 19 Mar 2008 - 10:29:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Mar 2008 - 10:30:23 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive