ImputeX: Draw new values of a single covariate (given other...

Description Usage Arguments Value

View source: R/impute_x.R

Description

Draw new values of a single covariate (given other covariates)

Usage

1
ImputeX(t, x, v, eta, psi, variable, type)

Arguments

t

a tibble of effect sizes (one column called 't')

x

a tibble of covariates

v

a tibble of estimation variances (one column called 'v')

eta

tibble of draws from the posterior of the MR model

psi

tibble of draws from the aux model

variable

string indicating which covariate to impute

type

string indicating covariate type ('binary', 'continuous')

Value

tibble with imputed values for (variable) in (x)


j3schaue/metami documentation built on Oct. 17, 2020, 9:16 a.m.