powered by
Function to create a binary firm-firm (FF) matrix based on both common ownership and board interlocks
FF.binary.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 be: \(1\) if there is at least one common manager or owner, \(0\) otherwise.
FF FF.naive.both FF.norm.both
# Create the complete binary firm-firm matrix for the companies held by Berkshire Hathaway data('firms_BKB') FF <- FF.binary.both(firms_BKB)
Run the code above in your browser using DataLab