imputeUnderhill: impute missing data

Description Usage Arguments Value Note

Description

impute missing data

Usage

1
2
imputeUnderhill(data, formula = Observed ~ Year + Month + Site, initial = 0,
  family = c("nbinomial", "poisson"))

Arguments

data

a data.frame containing the variables Year, Month, Site and Observed. The missing values of Observed are imputed by the algorithm.

formula

A formula defining the model to use for the imputation

initial

the initial value by which the missing values are replaced

family

"nbinomial" for a negative binomial distribution or "poisson" for a Poisson distribution

Value

A list with two elements: data with imputed values and iterations which is the number of iterations

Note

Deprecated function. Only relevant to run the code in the folder hpc and paper_simulation.


ThierryO/multimput documentation built on May 9, 2019, 4:42 p.m.