Skip to contents

This function computes the slope and R-squared values of a linear-regression for topological properties from networks.

Usage

slope_R2 (df_properties)

Arguments

df_properties

A data.frame generated by ml_properties.

Value

Returns a data.frame describing the slope and the R-squared of linear models.

Examples


data ("ml_prop_dstool")

slope_R2 (ml_prop_dstool)
#> Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]): contrasts can be applied only to factors with 2 or more levels