LW_pm_alpha_pairwise_lambdacov_global_alphacov_pairwise: Law-Watkinson model with pairwise alphas, covariate effects...

View source: R/LW_pm_alpha_pairwise_lambdacov_global_alphacov_pairwise.R

LW_pm_alpha_pairwise_lambdacov_global_alphacov_pairwiseR Documentation

Law-Watkinson model with pairwise alphas, covariate effects on lambda, and pairwise covariate effects on alpha

Description

Law-Watkinson model with pairwise alphas, covariate effects on lambda, and pairwise covariate effects on alpha

Usage

LW_pm_alpha_pairwise_lambdacov_global_alphacov_pairwise(
  par,
  fitness,
  neigh_intra_matrix = NULL,
  neigh_inter_matrix,
  covariates,
  fixed_parameters
)

Arguments

par

1d vector of initial parameters: lambda, lambda_cov, alpha, alpha_cov, and sigma

fitness

1d vector of fitness observations, in log scale

neigh_intra_matrix

optional matrix of one column, number of intraspecific neighbours for each observation

neigh_inter_matrix

matrix of arbitrary columns, number of interspecific neighbours for each observation

covariates

optional matrix with observations in rows and covariates in columns. Each cell is the value of a covariate in a given observation

fixed_parameters

optional list specifying values of fixed parameters, with components "lambda","alpha_intra","alpha_inter","lambda_cov","alpha_cov".

Value

log-likelihood value


RadicalCommEcol/cxr documentation built on Oct. 29, 2023, 10:07 p.m.