summary - Summary statistics for dataset array

Class

@dataset

Syntax

summary(A)

Description

summary(A) displays summaries of the variables in the dataset array A.

Summary information depends on the type of the variables in the data set:

Examples

Example 1

Summarize Fisher's iris data:

load fisheriris
species = nominal(species);
data = dataset(species,meas);
summary(data)
species: [150x1 nominal]
  setosa   versicolor   virginica
      50           50          50
meas: [150x4 double]
  min       4.3000         2         1    0.1000 
  1st Q     5.1000    2.8000    1.6000    0.3000 
  median    5.8000         3    4.3500    1.3000 
  3rd Q     6.4000    3.3000    5.1000    1.8000 
  max       7.9000    4.4000    6.9000    2.5000

Example 2

Summarize the data in hospital.mat:

load hospital
summary(hospital)

A dataset array created from the data file hospital.dat.
It has the first column of that file as observations 
names, and has had several other columns converted to a 
more convenient form.

LastName: [100x1 cell string]
Sex: [100x1 nominal]
   Female    Male 
       53      47 
Age: [100x1 double, Units = Yrs]
   min    1st Q    median    3rd Q    max 
    25       32        39       44     50 
Weight: [100x1 double, Units = Lbs]
   min    1st Q       median      3rd Q       max 
   111    130.5000    142.5000    180.5000    202 
Smoker: [100x1 logical]
   true    false 
     34       66 
BloodPressure: [100x2 double, Units = mm Hg]
   min            109         68 
   1st Q     117.5000    77.5000 
   median         122    81.5000 
   3rd Q     127.5000         89 
   max            138         99 
Trials: [100x1 cell, Units = Counts]

See Also

get, set, grpstats (dataset)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS