predict.hdpGLM | R Documentation |
Function returns the predicted (fitted) values of the outcome variable using
the estimated posterior expectation of the linear covariate betas produced by
the hdpGLM
function
## S3 method for class 'hdpGLM'
predict(object, new_data = NULL, ...)
object |
outcome of the function hdpLGM |
new_data |
data frame with the values of the covariates that are going to be used to generate the predicted/fitted values. The posterior mean is used to create the predicted values |
... |
|
It returns a data.frame with the fitted values for the outcome
variable, which are produced using the estimated posterior expectation of the
linear coefficients beta
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.