View source: R/get_log_reg_coefficients.R
get_log_reg_coefficients | R Documentation |
Calculates the coefficients of a logistic regression. Use an incidence matrix of pest - host interaction and a phylogenetical distance matrix of host.
get_log_reg_coefficients(incidence, phydist)
incidence |
Incidence binary matrix between interactions (example host - parasite system) |
phydist |
Phylogenetic distance matrix among host |
A table with logistic regression coefficients
phy_dist <- ape::cophenetic.phylo(host_tree)
incidence_matrix <- get_incidence_matrix(beetleTreeInteractions)
incidence_matrix <- incidence_matrix[ ,colnames(phy_dist)]
get_log_reg_coefficients(incidence_matrix, phy_dist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.