missing_observed: Generate missing data based on the observed patterns in the...

View source: R/missing_observed.R

missing_observedR Documentation

Generate missing data based on the observed patterns in the real dataset.

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_observed(
  dataset,
  count_variable = "Count",
  observed_variable = "Observed",
  site_variable = "Site",
  year_variable = "Year",
  period_variable = "Period"
)

Arguments

dataset

A dataset to a the observation with missing data.

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.

site_variable

The name of the variable holding the sites.

year_variable

The name of the variable holding the years.

period_variable

The name of the variable holding the period.


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