thin_NA: Introduce NAs into matrices

View source: R/functions.R

thin_NAR Documentation

Introduce NAs into matrices

Description

Thin a matrix of count data by replacing each of its values by an NA observation with a fixed probability

Usage

thin_NA(matvec, alpha = 0.3)

Arguments

matvec

The input matric or vector to be thinned

alpha

The probability of a point being replaced

Value

The object matvec, but with some elements replaced by NA values


calliste-fagard-jenkin/GAI documentation built on July 26, 2022, 11:20 a.m.