Skip to contents

The price of each deal written last: the book's loss priced with the deal and without it, on the assets of the capital standard assets and by exactly one of cost_of_capital and distortion, as price_portfolio() prices a portfolio, and the differences. Under a cost of capital r the premium is (EL + r dA) / (1 + r), with EL the deal's expected loss and dA the assets it adds. Under a subadditive standard (every distortion) it is at most the deal's allocated premium from price_portfolio(); the only deal in a book has its stand-alone price.

Usage

book_marginal_price(
  book,
  assets,
  cost_of_capital = NULL,
  distortion = NULL,
  deals = NULL
)

Arguments

book

A deal_book().

assets

The capital standard, a distortion.

cost_of_capital, distortion

Exactly one: the cost of capital or a pricing distortion.

deals

The deals to price, all by default.

Value

A data frame with a row a deal: deal, expected_loss, assets (dA), premium, margin, and the book's book_premium, book_assets, premium_without and assets_without.

Examples

a <- deal_run("a", rep(10, 4), c(1, 2, 3, 9))
b <- deal_run("b", rep(10, 4), c(4, 1, 2, 3))
book_marginal_price(deal_book(list(a, b)), distortion("tvar", 0.5), cost_of_capital = 0.1)
#>   deal expected_loss assets  premium       margin book_premium book_assets
#> 1    a          3.75    5.0 3.863636 1.136364e-01     6.454545         8.5
#> 2    b          2.50    2.5 2.500000 4.440892e-16     6.454545         8.5
#>   premium_without assets_without
#> 1        2.590909            3.5
#> 2        3.954545            6.0