imputeINLA: impute missing data using multiple imputation

Description Usage Arguments Value Note

View source: R/imputeINLA.R

Description

impute missing data using multiple imputation

Usage

1
2
imputeINLA(data, formula = Observed ~ Year + Month + f(Site, model = "iid"),
  n.sim = 499, 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

n.sim

the number of simulations

family

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

Value

A matrix with one row for each missing value. Each column is on imputation.

Note

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


ThierryO/multimput documentation built on May 10, 2017, 4:45 p.m.