Skip to contents

One row per posterior draw with the columns beta0, beta1, ell1, ell2, rho, sigma1, sigma2 and the coregionalization coefficients a11 = sigma1, a21 = sigma2 * rho and a22 = sigma2 * sqrt(1 - rho^2).

Usage

denmark_draws(obj)

Arguments

obj

A denmark object from DenMark().

Value

Data frame with one row per posterior draw.

Examples

toy <- denmark_toy_data()
tissue <- denmark_alpha_shape(toy$x, toy$y)
tumor <- subset(toy, celltype == "Tumor", select = -celltype)
fit <- DenMark(tumor, gene = "geneA", boundary = tissue,
               grid_size = 10, basis = 10,
               chains = 2, iter_warmup = 300, iter_sampling = 300,
               seed = 2024, quiet = TRUE)
draws <- denmark_draws(fit)
quantile(draws$rho, c(0.025, 0.5, 0.975))
#>      2.5%       50%     97.5% 
#> 0.3432107 0.6526423 0.8651198