@obsby |

Number of non-missing observations in a series or alpha, for each specified group.

Syntax: @obsby(x, y[y1, y2, ... yn, s])

x: series, alpha

y series, alpha

s: (optional) sample string or object

Return: series

Compute the number of non-missing values in x for groups defined by distinct values of y.

EViews will use the current or specified workfile sample.

Examples

show @obsby(x, g1, g2)

produces a linked series of by-group non-NA counts in the series x, where members of the same group have identical values for both g1 and g2.

Cross-references

See also
@nasby.