| loglik_niche | R Documentation |
Negative log likelihood of an ellipsoid corrected with environmental combinations which come from the area of study (M)
loglik_niche(mu, s_mat, env_occ, env_m, neg = TRUE)
mu |
A vector mu of parameters |
s_mat |
The covariance matrix from environmental data frame |
env_occ |
A data.frame containing the original sample of environmental combinations that correspond to presences |
env_m |
A data.frame containing a second random sample of environmental |
neg |
Logical. Default TRUE, returns the negative of the likelihood |
A negative log likelihood value
loglik_niche(
mu = example_mu_vec,
s_mat = example_s_mat,
env_occ = example_env_occ_2d,
env_m = example_env_m_2d
)
# Example with log of the likelihood
loglik_niche(
mu = example_mu_vec,
s_mat = example_s_mat,
env_occ = example_env_occ_2d,
env_m = example_env_m_2d,
neg = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.