
Extract correlational selection coefficients
Source:R/extract_results.R
extract_interaction_coefficients.RdExtract correlational selection coefficients
Arguments
- trait_cols
A character vector of trait column names.
- results
A model results object returned by
analyze_nonlinear_selection().
Examples
prep <- prepare_selection_data(bumpus, "survival", c("total_length", "weight"))
fit <- analyze_nonlinear_selection(prep, "survival", c("total_length", "weight"), "binary")
#> there are higher-order terms (interactions) in this model
#> consider setting type = 'predictor'; see ?vif
#> Warning: Collinear traits (VIF above 5) may inflate the standard errors
extract_interaction_coefficients(c("total_length", "weight"), fit)
#> Term Type Beta_Coefficient Standard_Error P_Value
#> 1 total_length × weight Correlational -0.06949785 0.1585041 0.5723638