powered by
Function to create a binary firm-owner (FO) matrix
FO.binary(..., id_as_firm_name = NULL, Matrix = NULL)
A matrix object of class financial_matrix (possibly using the Matrix package) in which:
financial_matrix
Matrix
Represent firms;
Represent owners (physical and legal persons).
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 there are more than 10,000 combinations and the package is installed.
Telarico, Fabio Ashtar
FM FO.naive FO.norm
# Create the binary FO matrix of Berkshire Hathaway's holdings # \donttest{ data('firms_BKB') FO <- FO.binary(firms_BKB) # }
Run the code above in your browser using DataLab