hmm.discnp (version 2.1-5)

nafracCalc: Calculate fractions of missing values.

Description

Calculate the fraction (univariate case) or fractions (bivariate case) of missing values in the data or in each component of the data.

Usage

nafracCalc(y)

Arguments

y

A vector or a one or two column matrix of discrete data or a list of such vectors or matrices.

Value

A scalar (between 0 and 1) if the data are univariate or a pair of such scalars if the data are bivariate. The values are equal to the ratios of the total count of missing values in the appropriate column to the total number of observations.

See Also

rhmm() misstify()

Examples

Run this code
# NOT RUN {
xxx <- with(SydColDisc,split(y,f=list(locn,depth)))
nafracCalc(xxx) # 0.7185199

# }

Run the code above in your browser using DataLab