Generate missing data based on the observed patterns in the real dataset.
Source:R/missing_observed.R
missing_observed.Rd
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.