stan_gllvm | R Documentation |
stan_jsdm
with method = "gllvm"
Alias for stan_jsdm
with method = "gllvm"
stan_gllvm(X, ...)
## Default S3 method:
stan_gllvm(
X = NULL,
Y = NULL,
D = NULL,
species_intercept = TRUE,
dat_list = NULL,
family,
site_intercept = "none",
prior = jsdm_prior(),
save_data = TRUE,
iter = 4000,
...
)
## S3 method for class 'formula'
stan_gllvm(formula, data = list(), ...)
X |
The covariates matrix, with rows being site and columns being covariates. Ignored in favour of data when formula approach is used to specify model. |
... |
Arguments passed to |
Y |
Matrix of species by sites. Rows are assumed to be sites, columns are assumed to be species |
D |
The number of latent variables within a GLLVM model |
species_intercept |
Whether the model should be fit with an intercept by
species, by default |
dat_list |
Alternatively, data can be given to the model as a list containing
Y, X, N, S, K, and site_intercept. See output of |
family |
is the response family, must be one of |
site_intercept |
Whether a site intercept should be included, potential
values |
prior |
Set of prior specifications from call to |
save_data |
If the data used to fit the model should be saved in the model object, by default TRUE. |
iter |
A positive integer specifying the number of iterations for each chain, default 4000. |
formula |
The formula of covariates that the species means are modelled from |
data |
Dataframe or list of covariates. |
stan_gllvm(default)
: Default
stan_gllvm(formula)
: Formula interface
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.