Learn R Programming

antitrust (version 0.99.26)

Ownership-methods: Methods for Manipulating Ownership Matrices

Description

ownerToMatrix converts an ownership vector (or factor) to a k x k matrix of 1s and 0s.

ownerToVec converts a k x k ownership matrix to a length-k vector whose values identify an owner.

Usage

# S4 method for Antitrust
ownerToMatrix(object, preMerger = TRUE)

# S4 method for VertBargBertLogit ownerToMatrix(object, preMerger = TRUE)

# S4 method for Antitrust ownerToVec(object, preMerger = TRUE)

Arguments

object

An instance of the Antitrust class.

preMerger

The ‘preMerger’ takes on a value of TRUE or FALSE, where TRUE invokes the method using the pre-merger values, while FALSE invokes the method using the post-merger ownership structure.

Author

Charles Taragin ctaragin+antitrustr@gmail.com

Examples

Run this code
showMethods(classes="Antitrust") # show all methods defined for the class

Run the code above in your browser using DataLab