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 VGMSFH.

var_idx

Integer. The index of the variable of interest (for multivariate models). Default is 1.

field

Character. The name of the slot to summarize (e.g., "yhat_samples", "beta_samples", "phi_samples"). Default is "yhat_samples".

Details

The function extracts posterior samples for the specified variable and then computes quantiles to form 95\

Value

A data frame with two columns:

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]