confint,VGMSFH-method | R Documentation |
This method computes 95\
## S4 method for signature 'VGMSFH'
confint(object, var_idx = 1, field = "yhat_samples")
object |
An object of class |
var_idx |
Integer. The index of the variable of interest (for multivariate models). Default is |
field |
Character. The name of the slot to summarize (e.g., |
The function extracts posterior samples for the specified variable and then computes quantiles to form 95\
A data frame with two columns:
lower
: the 2.5\
upper
: the 97.5\
library(vmsae)
example_model <- readRDS(system.file("example", "example_model.Rds", package = "vmsae"))
confint(example_model) # Get credible intervals for predicted values
confint(example_model, field = "beta_samples") # For fixed effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.