Description Usage Arguments Value
View source: R/SAM_gibbs_functions.R
This function generates samples of omega (the underlying latent continuous variable)
1 | sample.omega(y, nspp, nloc, xmat, betas, cs, alpha)
|
y |
L x S matrix, containing the presence-absence data |
nspp |
overall number of species S |
nloc |
overall number of locations L |
xmat |
L x P matrix containing the covariates (columns) for each location (rows). Notice that this matrix does not contain a column of 1's for the intercept |
betas |
P x KS matrix containing slope parameters for each covariate (row) for each group (column) |
cs |
group assignment for each species |
alpha |
intercept for each species |
n |
number of samples to generate |
this function returns a L x S matrix containing the underlying latent variables omega
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.