Compute the posterior mean and variance of h at a new predictor values
Function to estimate the posterior mean and variance by obtaining the posterior mean and variance at particular iterations and then using the iterated mean and variance formulas
ComputePostmeanHnew.exact(fit, y = NULL, Z = NULL, X = NULL, Znew = NULL, sel = NULL)
fit |
An object containing the results returned by a the |
y |
a vector of outcome data of length |
Z |
an |
X |
an |
Znew |
optional matrix of new predictor values at which to predict |
sel |
A vector selecting which iterations of the BKMR fit should be retained for inference. If not specified, will default to keeping every 10 iterations after dropping the first 50% of samples, or if this results in fewer than 100 iterations, than 100 iterations are kept |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.