Learn R Programming

FinNet (version 0.1.2)

FF.norm.ownership: Create a normalised-valued firm-firm (FF) matrix for common ownership

Description

Function to create a normalised-valued firm-firm (FF) matrix based on common ownership

Usage

FF.norm.ownership(
  ...,
  id_as_firm_name = NULL,
  Matrix = NULL,
  self_ties = FALSE
)

Value

A matrix object of class financial_matrix(possibly using the Matrix package)

Arguments

...

Either multiple objects of class firm or a list of such objects

id_as_firm_name

Whether to use the ticker as the firm's name. Defaults to TRUE if all firms' id is neither NULL nor NA.

Matrix

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.

self_ties

Whether to allow self-ties (a 'loop' in graph theory). Defaults to FALSE.

Author

Telarico, Fabio Ashtar

Details

Normalised-valued means that weights represent the share of common managers.

See Also

FF FF.binary.ownership FF.binary.management FF.naive.ownership FF.naive.management FF.norm.management

Examples

Run this code

# Create the normalised FF matrix of Berkshire Hathaway's holdings by common ownership
data('firms_BKB')
FF <- FF.norm.ownership(firms_BKB)

Run the code above in your browser using DataLab