Skip to contents

Calculate phylogenetic variance covariance matrix from pfc

Usage

pf_vcv(x, ...)

Arguments

x

A pfc object

...

Other arguments for future extensions.

Value

A sparseMatrix

Examples

pf_vcv(rpfc(10))
#> 18 x 18 sparse Matrix of class "dgCMatrix"
#>   [[ suppressing 18 column names ‘t9’, ‘t5’, ‘t6’ ... ]]
#>                                                                              
#> t9    3.104985 2.750571 2.750571 2.750571 1.620084 .        .        .       
#> t5    2.750571 3.104985 3.058076 3.048542 1.620084 .        .        .       
#> t6    2.750571 3.058076 3.104985 3.048542 1.620084 .        .        .       
#> t10   2.750571 3.048542 3.048542 3.104985 1.620084 .        .        .       
#> t3    1.620084 1.620084 1.620084 1.620084 3.104985 .        .        .       
#> t8    .        .        .        .        .        3.104985 2.829291 2.718331
#> t4    .        .        .        .        .        2.829291 3.104985 2.718331
#> t2    .        .        .        .        .        2.718331 2.718331 3.104985
#> t1    .        .        .        .        .        2.718331 2.718331 3.028075
#> t7    .        .        .        .        .        2.718331 2.718331 3.028075
#> Node2 1.620084 1.620084 1.620084 1.620084 1.620084 .        .        .       
#> Node3 .        .        .        .        .        2.718331 2.718331 2.718331
#> Node4 2.750571 2.750571 2.750571 2.750571 1.620084 .        .        .       
#> Node5 .        .        .        .        .        2.829291 2.829291 2.718331
#> Node6 .        .        .        .        .        2.718331 2.718331 3.028075
#> Node7 2.750571 3.048542 3.048542 3.048542 1.620084 .        .        .       
#> Node8 2.750571 3.058076 3.058076 3.048542 1.620084 .        .        .       
#> Node9 .        .        .        .        .        2.718331 2.718331 3.028075
#>                                                                              
#> t9    .        .        1.620084 .        2.750571 .        .        2.750571
#> t5    .        .        1.620084 .        2.750571 .        .        3.048542
#> t6    .        .        1.620084 .        2.750571 .        .        3.048542
#> t10   .        .        1.620084 .        2.750571 .        .        3.048542
#> t3    .        .        1.620084 .        1.620084 .        .        1.620084
#> t8    2.718331 2.718331 .        2.718331 .        2.829291 2.718331 .       
#> t4    2.718331 2.718331 .        2.718331 .        2.829291 2.718331 .       
#> t2    3.028075 3.028075 .        2.718331 .        2.718331 3.028075 .       
#> t1    3.104985 3.075011 .        2.718331 .        2.718331 3.028075 .       
#> t7    3.075011 3.104985 .        2.718331 .        2.718331 3.028075 .       
#> Node2 .        .        1.620084 .        1.620084 .        .        1.620084
#> Node3 2.718331 2.718331 .        2.718331 .        2.718331 2.718331 .       
#> Node4 .        .        1.620084 .        2.750571 .        .        2.750571
#> Node5 2.718331 2.718331 .        2.718331 .        2.829291 2.718331 .       
#> Node6 3.028075 3.028075 .        2.718331 .        2.718331 3.028075 .       
#> Node7 .        .        1.620084 .        2.750571 .        .        3.048542
#> Node8 .        .        1.620084 .        2.750571 .        .        3.048542
#> Node9 3.075011 3.075011 .        2.718331 .        2.718331 3.028075 .       
#>                        
#> t9    2.750571 .       
#> t5    3.058076 .       
#> t6    3.058076 .       
#> t10   3.048542 .       
#> t3    1.620084 .       
#> t8    .        2.718331
#> t4    .        2.718331
#> t2    .        3.028075
#> t1    .        3.075011
#> t7    .        3.075011
#> Node2 1.620084 .       
#> Node3 .        2.718331
#> Node4 2.750571 .       
#> Node5 .        2.718331
#> Node6 .        3.028075
#> Node7 3.048542 .       
#> Node8 3.058076 .       
#> Node9 .        3.075011