postBeta | R Documentation |
In our model mui follows a normal distribution with mean Xi^T %*% beta and precision rho. Additionally we assume that beta follows a mvnormal prior with mean 0 and precision (rho_Beta) * I.This function draws from the posterior distribution of beta under these assumptions.
postBeta(rhoBeta = 0.01, rho, Xi, muI)
rhoBeta |
A scalar representing the prior precision parameter for beta. |
rho |
A scalar representing the precision parameter. |
Xi |
A matrix of covariates, where each row represents an individual and each column represents a covariate. |
muI |
A vector where each element is the mean for individual i. |
This function assumes that Xi
is a (num Individuals) x (dimension of beta) matrix of covariates.
A vector representing a draw from the posterior distribution of beta parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.