mirror of
https://github.com/Polarolouis/anova-phylogenetique-projet-msv.git
synced 2026-06-17 18:25:25 +02:00
✨Extracting nb_species and K number of groups from model fit
This commit is contained in:
parent
aa13972a3d
commit
00d4f979f8
1 changed files with 4 additions and 1 deletions
|
|
@ -231,7 +231,6 @@ compute_trait_values <- function(
|
||||||
return(trait + trait_phylo + trait_error)
|
return(trait + trait_phylo + trait_error)
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO Récupérer K et nb_species des objets
|
|
||||||
#' Infere an ANOVA and a phyloanova
|
#' Infere an ANOVA and a phyloanova
|
||||||
#'
|
#'
|
||||||
#' @param y the vector of traits for which to fit the models
|
#' @param y the vector of traits for which to fit the models
|
||||||
|
|
@ -263,6 +262,10 @@ pvalues_from_fits <- function(
|
||||||
# For sanity test
|
# For sanity test
|
||||||
match.arg(tested_method)
|
match.arg(tested_method)
|
||||||
|
|
||||||
|
# Extracting values
|
||||||
|
nb_species <- nrow(model.frame(fit_anova))
|
||||||
|
K <- length(unique(model.frame(fit_anova)$groups))
|
||||||
|
|
||||||
is_invalid_value <- function(value) {
|
is_invalid_value <- function(value) {
|
||||||
return(is.nan(value) ||
|
return(is.nan(value) ||
|
||||||
is.null(value) ||
|
is.null(value) ||
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue