Describing an integer, means typically count data, is sometimes the same as describing an ordered factor, and somethimes,
when there are many levels, it is like describing a numeric value.
Usage
## S3 method for class 'integer':
Desc(x, xname = NULL, maxlevels = 12,
digits = 3, plotit = FALSE, ...)
Arguments
x
a single integer vector to be described.
xname
the caption for the output.
maxlevels
integer. Until how many levels should the detailed frequencies be reported. Default is 12.
If there are more levels, then the output will fallback to the presentation of highest and lowest values as used in
for the representation of numeric variabl
digits
integer. With how many digits shoud the relative frequencies be formatted? Default is 3.
plotit
boolean. Should a plot be created? The vector would be plotted by means of PlotDesc.numeric, which again basically is
PlotFdist. Default is FA
...
further argument to be passed to methods.
Value
A list containing the following components:
lengththe length of the vector (n + NAs).
nthe valid entries (NAs are excluded)
NAsnumber of NAs
uniquenumber of unique values.
0snumber of zeros
meanarithmetic mean
MeanSEstandard error of the mean, as calculated by MeanSE.
quanta table of quantiles, as calculated by
quantile(x, probs = c(.05,.10,.25,.5,.75,.9,.95), na.rm = TRUE).