Description Usage Arguments Value
View source: R/SAM_gibbs_functions.R
This function generates samples of betas, the regression slope parameters
1 | sample.betas(ngroups, cs, nparam, xtx, t.xmat, alpha, nloc, nspp, omega)
|
ngroups |
maximum number of species groups (KS) |
cs |
vector of size S with group assignment for each species |
nparam |
overall number of covariates (P) |
xtx |
equal to t(X)*X |
t.xmat |
equal to tranpose of the design matrix t(X) |
alpha |
vector of size S with intercept for each species |
nloc |
overall number of locations (L) |
nspp |
overall number of species (S) |
omega |
a matrix L x S containing the underlying latent variables omega |
this function returns a P x KS matrix with regression slope parameters betas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.