MV_OBS - Number of observations with non-missing values

Calculates the number of non-missing observations in a data set (X and Y).

 

Syntax

MV_OBS(X, Mask, Y)

X is the input (explanatory) variables of the data set (two dimensional array of cells, where each column corresponds to a variable).

Mask is the boolean array to choose the input variables in the set. If missing, all variables in X are included.

Y is the dependent variable data set (one dimensional array of cells).

 

Remarks

  1. In case of a missing mask input, all variables in X are considered.
  2. In case the number of the size of the mask array is smaller than the number of variables in X, the array is appeded with ones to match X.
  3. In case the number of the size of the mask array is greater than the number of variables in X, the excess elements are dropped/ignored.

Files Examples

References

Have more questions? Submit a request

0 Comments