SamplePred {bkmr} | R Documentation |
Obtains posterior samples of E(Y) = h(Znew) + beta*Xnew
or of g^{-1}[E(y)]
SamplePred(fit, Znew = NULL, Xnew = NULL, Z = NULL, X = NULL, y = NULL, sel = NULL, type = c("link", "response"), ...)
fit |
An object containing the results returned by a the |
Znew |
optional matrix of new predictor values at which to predict new |
Xnew |
optional matrix of new covariate values at which to obtain predictions. If not specified, defaults to using observed X values |
Z |
an |
X |
an |
y |
a vector of outcome data of length |
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 |
type |
whether to make predictions on the scale of the link or of the response; only relevant for the binomial outcome family |
... |
other arguments; not currently used |
For guided examples, go to https://jenfb.github.io/bkmr/overview.html