Calculate a 'second order' pfc
, which represents summed
branch length from each node to the terminal node along each flow.
When used in modelling traits, a second order pfc
implies that
rates of evolution of the trait are themselves evolving according to
Brownian motion.
pf_second_order.Rd
Calculate a 'second order' pfc
, which represents summed
branch length from each node to the terminal node along each flow.
When used in modelling traits, a second order pfc
implies that
rates of evolution of the trait are themselves evolving according to
Brownian motion.
Examples
pf_second_order(rpfc(100))
#> <pfc<e:198>[198]>
#> First 10 phylogenetic flows:
#> [1] ◎──1.873──→ Node4 ──0.578──→ Node10 ──0.159──→ Node18 ──0.074──→ t82
#>
#> [2] ◎──1.873──→ Node4 ──0.578──→ Node10 ──0.159──→ Node18 ──0.074──→ Node40 ──0.037──→ t4
#>
#> [3] ◎──1.8734──→ Node4 ──0.5775──→ Node10 ──0.1591──→ Node18 ──0.0736──→ Node40 ──0.0366──→ Node69 ──0.0089──→ t2
#>
#> [4] ◎──1.8734──→ Node4 ──0.5775──→ Node10 ──0.1591──→ Node18 ──0.0736──→ Node40 ──0.0366──→ Node69 ──0.0089──→ Node86 ──0.0027──→ t69
#>
#> [5] ◎──1.8734──→ Node4 ──0.5775──→ Node10 ──0.1591──→ Node18 ──0.0736──→ Node40 ──0.0366──→ Node69 ──0.0089──→ Node86 ──0.0027──→ t49
#>
#> [6] ◎──1.8734──→ Node4 ──0.5775──→ Node10 ──0.1591──→ Node16 ──0.0885──→ Node68 ──0.0092──→ t96
#>
#> [7] ◎──1.8734──→ Node4 ──0.5775──→ Node10 ──0.1591──→ Node16 ──0.0885──→ Node68 ──0.0092──→ t21
#>
#> [8] ◎──1.87340──→ Node4 ──0.57751──→ Node10 ──0.15908──→ Node16 ──0.08845──→ Node26 ──0.05012──→ Node30 ──0.04687──→ Node41 ──0.03545──→ Node98 ──0.00054──→ t13
#>
#> [9] ◎──1.87340──→ Node4 ──0.57751──→ Node10 ──0.15908──→ Node16 ──0.08845──→ Node26 ──0.05012──→ Node30 ──0.04687──→ Node41 ──0.03545──→ Node98 ──0.00054──→ t68
#>
#> [10] ◎──1.873──→ Node4 ──0.578──→ Node10 ──0.159──→ Node16 ──0.088──→ Node26 ──0.050──→ Node30 ──0.047──→ Node41 ──0.035──→ t3