h
at a new predictor values using approx method for MI BKMR fitsR/ComputePostmeanHnew.approx.R
ComputePostmeanHnew.approx.Rd
Compute the posterior mean and variance of h
at a new predictor values
ComputePostmeanHnew.approx(
fit,
y = NULL,
Z = NULL,
X = NULL,
Znew = NULL,
sel = NULL
)
An object contatin the results return by the kmbayes function
a vector of outcome data of length n
.
an n-by-M
matrix of predictor variables to be included in the h
function. Each row represents an observation and each column represents an predictor.
an n-by-K
matrix of covariate data where each row represents an observation and each column represents a covariate. Should not contain an intercept column.
matrix of new predictor values at which to predict new h, where each row represents a new observation. If set to NULL then will default to using the observed exposures Z
selects which iterations of the MCMC sampler to use for inference
A list of mean, variance, entire mean matrix and variance array