This function computes the likelihood associated to a specific set of parameters, i.e. a specific. Note that the parameters included determine the ecological processes considered.
getLikelihood(pars, obs, zero_infl = FALSE, neigh = NULL, disp = NULL, favo = NULL, SDBH = NULL, kernel = "kern_lognormal", pstr = NA, ppz = NA, pscal = NA, pshap = NA, pfav = NA, pneigh = NA, quiet = TRUE, record = NULL)
| pars | vector of parameters values. |
|---|---|
| obs | vector of observations of recruitment for each plots of the stand. |
| zero_infl | a logical. If |
| neigh | a vector of the size of |
| disp | a vector of the size of |
| favo | a vector of the size of |
| SDBH | a numeric vector of standardized DBH (Diameter at breast heights). |
| kernel | a character string indicating which kernel should be used (either |
| pstr | position of parameter |
| ppz | position of |
| pscal | position of the scale parameter (of the dispersal kernel) within the vector of parameter values. |
| pshap | the position of the shape parameter (of the dispersal kernel) within the vector of parameter values. |
| pfav | the position of the five favourability values within the vector of parameter values. |
| pneigh | position of the parameter associated to the neighborhood effect in the vector of parameter values. |
| quiet | a logical. If |
| record | a connection, or a character string naming the file to print to. If |
The log-likelihood values associated to a given set of parameters.
The parameter pz have a value even if it is not included in the analysis (meaning a poisson distribution is used).