Object Reference : Object View and Procedure Reference : Series
  
 
freq
Compute frequency tables.
The freq command performs a one-way frequency tabulation. The options allow you to control binning (grouping) of observations.
Syntax
series_name.freq(options)
Options
 
dropna (default) / keepna
[Drop/Keep] NA as a category.
v=integer (default=100)
Make bins if the number of distinct values or categories exceeds the specified number.
nov
Do not make bins on the basis of number of distinct values; ignored if you set “v=integer.”
a=number (default=2)
Make bins if average count per distinct value is less than the specified number.
noa
Do not make bins on the basis of average count; ignored if you set “a=number.”
b=integer (default=5)
Maximum number of categories to bin into.
n, obs, count (default)
Display frequency counts.
nocount
Do not display frequency counts.
total (default) / nototal
[Display / Do not display] totals.
pct (default) / nopct
[Display / Do not display] percent frequencies.
cum (default) / nocum
(Display/Do not) display cumulative frequency counts/percentages.
prompt
Force the dialog to appear from within a program.
p
Print the table.
Examples
hrs.freq(nov,noa)
tabulates each value (no binning) of HRS in ascending order with counts, percentages, and cumulatives.
inc.freq(v=20,b=10,noa)
tabulates INC excluding NAs. The observations will be binned if INC has more than 20 distinct values; EViews will create at most 10 equal width bins. The number of bins may be smaller than specified.
Cross-references
See “One-Way Tabulation” for a discussion of frequency tables.