confint,VGMSFH-method {vmsae} | R Documentation |
Compute Credible Intervals for VGMSFH Parameters
Description
This method computes 95\
Usage
## S4 method for signature 'VGMSFH'
confint(object, var_idx = 1, field = "yhat_samples")
Arguments
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., |
Details
The function extracts posterior samples for the specified variable and then computes quantiles to form 95\
Value
A data frame with two columns:
-
lower
: the 2.5\ -
upper
: the 97.5\
Examples
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
[Package vmsae version 0.1.1 Index]