Learn R Programming

WARDEN (version 0.99.1)

cond_dirichlet: Calculate conditional dirichlet values

Description

Calculate conditional dirichlet values

Usage

cond_dirichlet(alpha, i, xi, full_output = FALSE)

Value

List of length 2, one with new mu and other with covariance parameters

Arguments

alpha

mean vector

i

index of the known parameter (1-based index)

xi

known value of the i-th parameter (should be >0)

full_output

boolean indicating whether to return the full list of parameters

Details

Function to compute conditional dirichlet values

Examples

Run this code
alpha <- c(2, 3, 4)
i <- 2  # Index of the known parameter
xi <- 0.5  # Known value of the second parameter

# Compute the conditional alpha parameters with full output
cond_dirichlet(alpha, i, xi, full_output = TRUE)

Run the code above in your browser using DataLab