Description Usage Arguments Value
Construct (but do not fit) an mbm model
1 2 3 | make_mbm(y, x, y_name, link, likelihood, lengthscale, sparse,
force_increasing, sparse_inducing = 10, sparse_batch = 10,
sparse_iter = 10000)
|
y |
Square dissimilarity or distance matrix, can be complete or lower triangular
only. Row and column names are required and must match the site names in the
rows of |
x |
Matrix giving a series of covariates (in columns) for all sites (in rows). Row names are required. All variables will be included in the model. |
y_name |
A name to give to the y variable |
link |
Link function to use |
likelihood |
Likelihood function to use |
lengthscale |
Either missing (in which case all lengthscales will be optimized) or
a numeric vector of length |
sparse |
Should we use the stochastic variational GP. |
force_increasing |
Boolean; if true, beta diversity will be constrained to increase with environmental distance |
sparse_inducing |
Number of inducing inputs to use for the svgp |
sparse_batch |
Batchsize to use for the svgp |
sparse_iter |
Maximum number of optimizer iterations for svgp |
An mbm object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.