Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

imputeCounter

Imputation of Counterfactual


Description

imputeCounter imputes counterfactual missing values for a gjrm model object.

Usage

imputeCounter(x, m = 10, nm.end)

Arguments

x

A fitted gjrm object.

m

Number of imputed response vectors.

nm.end

Name endogenous variable.

Details

This function generates m sets of imputed values for the outcome of interest under a fitted joint causal model. The algorithm draws parameters from the posterior distribution of the model which are then used to obtain simulated responses (from the posterior predictive distribution of the missing values) via a rejection algorithm. The bound for acceptance/rejection is obtained via a trust region optimisation.

The imputed values are used to create m complete imputed datasets and perform complete data analysis and inference about the parameters of interest using any summary statistics.

Value

It returns a list containing m imputed response vectors.

Author(s)

Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk

References

Robert C. and Casella G. (2004). Monte Carlo Statistical Methods. New York: Springer-Verlag.

Ripley B. D. (1987) Stochastic Simulation. New York: John Wiley & Sons, Inc.

See Also

Examples

## see examples for gjrm

GJRM

Generalised Joint Regression Modelling

v0.2-4
GPL (>= 2)
Authors
Giampiero Marra <giampiero.marra@ucl.ac.uk> and Rosalba Radice <rosalba.radice@city.ac.uk>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.