Skip to contents

The proportion of zeros in an numeric object.

Usage

pzeros(x, na_rm = FALSE)

Arguments

x

A numeric object of MCMC values.

na_rm

A flag specifying whether to remove missing values.

Value

A number between 0 and 1.

Examples

pzeros(c(0:2))
#> [1] 0.3333333