get_H | R Documentation |
Function to extract the estimated value of the horseshoe component of the model from an HPR model in the presence of augmented data. If there are no augmented data, use get_preds. For posterior predictions, use post_predict.
get_H(object = NULL, alpha = 0.05)
object |
The results object from a run of hpr. |
alpha |
The uncertainty level for the values of the ho; the default is 0.05 (which corresponds to 95% credible intervals). |
A dataframe with N rows (corresponding to the rows of X, X_aug) and columns:
the mean of the posterior samples of the horseshoe component
the median of the posterior samples of the horseshoe component
the alpha/2 percentile of the posterior samples of the horseshoe component
the 1-alpha/2 percentile of the posterior samples of the horseshoe component
X <- as.matrix(dat$Day, ncol = 1)
y <- dat$Temperature
mymodel <- hpr(y = y, X = X, family = "gaussian")
my_H <- get_H(mymodel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.