R/fc_beta.r

Defines functions fc_beta

fc_beta <- function(X, y, sig_inv_Xt, sig_inv){
  p = ncol(X)
  beta_hat = sig_inv_Xt %*% y 
  mvrnorm(1, beta_hat, sig_inv)
}

Try the BayesPIM package in your browser

Any scripts or data that you put into this service are public.

BayesPIM documentation built on April 12, 2025, 1:59 a.m.