missing_volunteer: Generate missing data mimicking choices made by volunteers.

View source: R/missing_volunteer.R

missing_volunteerR Documentation

Generate missing data mimicking choices made by volunteers.

Description

The observed values will be either equal to the counts or missing. The probability of missing is the inverse of the counts + 1.

Usage

missing_volunteer(
  dataset,
  proportion = 0.25,
  count_variable = "Count",
  observed_variable = "Observed",
  year_variable = "Year",
  site_variable = "Site",
  max_count = 100
)

Arguments

dataset

A dataset to a the observation with missing data.

proportion

The proportion of observations that will be missing.

count_variable

The name of the variable holding the counts.

observed_variable

The name of the variable holding the observed values = either count or missing.

year_variable

The name of the variable holding the years.

site_variable

The name of the variable holding the sites.

max_count

The maximum count.


inbo/multimput documentation built on Sept. 17, 2023, 4:35 a.m.