View source: R/loglikelihood_guilds_conditional.R
logLikelihood.Guilds.Conditional | R Documentation |
This function calculates the likelihood of the guilds model, conditional on guild size; provided abundance data and parameter values.
logLikelihood.Guilds.Conditional(parameters, model, sadx, sady, verbose = TRUE)
parameters |
|
model |
The chosen model to calculate the likelihood for, please note that the vector of parameters should contain the corresponding parameters in the right order. The user can pick one of these models: |
sadx |
The Species Abundance Distribution of guild X |
sady |
The Species Abundance Distribution of guild Y |
verbose |
TRUE/FALSE flag, indicates whether intermediate output is shown on screen |
returns the LogLikelihood
Thijs Janzen
exampleData <- generate.Guilds.Cond(theta = 200,
alpha_x = 0.005,
alpha_y = 0.001,
JX = 1000,
JY = 2000)
#theta = 200, alpha X = 0.005, alpha Y = 0.001
parametervals <- c(200, 0.005, 0.001)
LL = logLikelihood.Guilds.Conditional(parametervals,
model="D1",
exampleData$guildX,
exampleData$guildY,
verbose=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.