BTRR_draw_beta: Draw betas

View source: R/900_BTRR_sampling_fns.R

BTRR_draw_betaR Documentation

Draw betas

Description

Draw beta variables from their posterior full conditional distributions. As a note, this is done with a loop in the code for the Markov Chain Monte Carlo.

Usage

BTRR_draw_beta(Y, x, betas, Sigma_AR, tau, Phi, W, j, r)

Arguments

Y

Array of the response values

x

Matrix of the covariates

betas, W

Lists of length D comprised of p_j by R matrices

Sigma_AR

A covariance matrix based off of the observational variance \ and the covariance structure.

tau

A scalar for the global variance

Phi

A vector for the rank-weighting of the variance

j

Dimension index

r

Rank index

Value

A list of length D made up of matrices with dimensions p_j by R.


danieladamspencer/bayestensorreg documentation built on July 23, 2024, 10:14 a.m.