log_reg_coef: Logistic regression coeficients. Calculates the coefficients...

View source: R/log_reg_coef.R

log_reg_coefR Documentation

Logistic regression coeficients. Calculates the coefficients of a logistic regression. Use an incidence matrix of pest - host interaction and a phylogenetical distance matrix of host.

Description

Logistic regression coeficients. Calculates the coefficients of a logistic regression. Use an incidence matrix of pest - host interaction and a phylogenetical distance matrix of host.

Usage

log_reg_coef(incidence, phydist)

Arguments

incidence

Incidence binary matrix between pest - host interaction

phydist

Phylogenetic host distance matrix

Examples

incidence_matrix <-  get_incidence_matrix(db = beetleTreeInteractions)
incidence_matrix <- incidence_matrix[, colnames(phy_dist)]
log_reg_coef(incidence_matrix, phy_dist)



alrobles/geotax documentation built on July 27, 2023, 4:37 a.m.