powered by
Function to create a naive-valued firm-firm (FF) matrix based on both common ownership and board interlocks
FF.naive.both( ..., id_as_firm_name = NULL, Matrix = NULL, self_ties = FALSE, combining = "sum" )
A matrix object of class financial_matrix(possibly using the Matrix package)
financial_matrix
Matrix
Either multiple objects of class firm or a list of such objects
firm
Whether to use the ticker as the firm's name. Defaults to TRUE if all firms' id is neither NULL nor NA.
TRUE
NULL
NA
Whether to use the Matrix package. Defaults to TRUE when any matrix in the pipeline contains more than 10,000 cells and the package is installed.
Whether to allow self-ties (a 'loop' in graph theory). Defaults to FALSE.
FALSE
How to combine the FF matrix for managers and that for owners. Possible values:
sum;
sum
mean or average;
mean
average
min;
min
max;
max
Telarico, Fabio Ashtar
The ties' value will reflect the count of common owners and membership depending on combining:
combining
sum: sum of the counts;
mean or average: average of the counts;
min: minimum of the counts;
max: maximum of the counts.
FF FF.binary.both FF.norm.both
# Create the complete naive firm-firm matrix for the companies held by Berkshire Hathaway data('firms_BKB') FF <- FF.naive.both(firms_BKB)
Run the code above in your browser using DataLab