The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Package {pfandbriefcalc}


Type: Package
Title: Calculations and Controls for German Covered Bonds
Version: 0.1.0
Description: Native, offline valuation and coverage calculations for German covered bonds ('Pfandbriefe'). Returns explicit intermediate values and source references. Input evidence, legal qualification and regulatory approval remain separate from arithmetic results. Includes property, ship and aircraft lending values, contractual cashflows, stress calculations, coverage limits, liquidity, evidence controls and local analytical exports. Methods follow the German Covered Bond Act (2005) https://www.gesetze-im-internet.de/pfandbg/BJNR137310005.html and the Mortgage Lending Value Regulation (2006) https://www.gesetze-im-internet.de/belwertv/BJNR117500006.html.
License: AGPL-3
Encoding: UTF-8
Depends: R (≥ 4.1.0)
Imports: stats
NeedsCompilation: no
URL: https://github.com/rds0001/pfandbriefcalc-r
BugReports: https://github.com/rds0001/pfandbriefcalc-r/issues
Packaged: 2026-11-11 14:05:08 UTC; qwert123
Author: Dimitrios Geromichalos [aut, cre] (Dr.), RiskDataScience GmbH [cph, fnd]
Maintainer: Dimitrios Geromichalos <riskdatascience@web.de>
Repository: CRAN
Date/Publication: 2026-12-02 12:20:02 UTC

Amount accrued from unadjusted coupon start; no ex-coupon convention assumed.

Description

Amount accrued from unadjusted coupon start; no ex-coupon convention assumed.

Usage

accrued_interest(
  principal,
  coupon_rate,
  period_start,
  settlement,
  period_end,
  day_count
)

Arguments

principal

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

coupon_rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

period_start

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

settlement

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

period_end

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

day_count

ACT/365F, ACT/360, 30E/360 (European, not ISDA-February), or ACT/ACT-ISDA. Fractions are unrounded.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. No ex-coupon period or detached-coupon adjustment Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Business date using explicit holidays and Saturday/Sunday weekends.

Description

Business date using explicit holidays and Saturday/Sunday weekends.

Usage

adjust_date(day, convention, holidays)

Arguments

day

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

convention

Day-count or business-day convention, according to the function; accepted identifiers are stated in the function details.

holidays

Explicit sequence of holiday dates; an empty sequence means weekends only. No calendar is downloaded.

Details

Conventions: unadjusted, following, modified_following and preceding. The holiday set is explicitly supplied, not inferred from a country name. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Explicit amount aggregation over unique positions; grouping fields must be strings.

Description

Explicit amount aggregation over unique positions; grouping fields must be strings.

Usage

aggregate_positions(positions, group_fields, value_field)

Arguments

positions

Function-specific position records. Integrated pools require the complete common universe; metrics require their documented fields. See DATA_CONTRACTS.md.

group_fields

Explicit grouping-column names or numeric amount-column name; every grouping value must be nonempty text and position IDs must be unique.

value_field

Explicit grouping-column names or numeric amount-column name; every grouping value must be nonempty text and position IDs must be unique.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Caller must group by kind and currency wherever amounts are not homogeneous Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Aircraft upper limits, preserving available independent bounds.

Description

Aircraft upper limits, preserving available independent bounds.

Usage

aircraft_value_limit(
  current_market_value,
  average_market_value,
  balanced_value,
  history_years
)

Arguments

current_market_value

Monetary market/value/price input. A missing transport market value is None/NULL only in a documented alternative branch; bond price is a dirty amount price.

average_market_value

Monetary market/value/price input. A missing transport market value is None/NULL only in a documented alternative branch; bond price is a dirty amount price.

balanced_value

Monetary market/value/price input. A missing transport market value is None/NULL only in a documented alternative branch; bond price is a dirty amount price.

history_years

Whole number of years of usable comparable-market history, from 0 through 10; missing averages require zero.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Upper limit only; estimates, sustainable value and method evidence are external Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Integrate explicit valuations, coverage, limits, liquidity and dated evidence in EUR.

Description

Integrate explicit valuations, coverage, limits, liquidity and dated evidence in EUR.

Usage

analyze_pool(
  kind,
  positions,
  oc_allocations,
  cashflows,
  buffers,
  fx_rates,
  evidence,
  as_of,
  known_at,
  additional_nominal = 0,
  additional_pv = 0
)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

positions

Function-specific position records. Integrated pools require the complete common universe; metrics require their documented fields. See DATA_CONTRACTS.md.

oc_allocations

Records asset_id, role (NOMINAL_OC/PV_OC), fraction in [0,1]; total reserved fractions per asset cannot exceed one.

cashflows

Records flow_id, position_id, date, inflow, outflow. All days are retained by the 180-day ledger; dates after the horizon do not affect its maximum deficit.

buffers

Records asset_id, qualified_value, monetized, qualification_ref. Monetized asset inflows are removed; payment obligations remain.

fx_rates

Records currency, eur_per_unit, shock. EUR requires 1 and 0. Every position currency must have an explicit row.

evidence

Dated evidence records evidence_id,requirement_id,scope,valid_from,valid_to,known_from,conclusion,reviewer,source_ref,reason; conclusions are MET/NOT_MET/NOT_APPLICABLE.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

known_at

Knowledge cutoff date, separate from the validity date. Later-known evidence and corrections are excluded.

additional_nominal

Explicit additional nominal or present-value cover requirement in currency units, including applicable supervisory/contractual requirements. Zero must be justified.

additional_pv

Explicit additional nominal or present-value cover requirement in currency units, including applicable supervisory/contractual requirements. Zero must be justified.

Details

One complete position universe drives coverage, limits, stress and 180-day liquidity in EUR. Required evidence is derived by pool_requirements. Missing evidence leaves hypothetical calculations visible with INCOMPLETE; negative evidence excludes positive assets but never removes negative derivative liabilities. Input record schemas are essential: see DATA_CONTRACTS.md. CHECKS_PASSED covers implemented calculations and supplied evidence consistency, not authenticity or supervisory approval PV inputs must already value the qualified tranche; derivatives are independent framework market values Open evidence makes the otherwise calculated amounts hypothetical Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

result <- do.call(analyze_pool, cashflow_example_pool("HYP")$value)
result$value

Annual end-of-period annuity multiplier; rate=0 is a mathematical limit.

Description

Annual end-of-period annuity multiplier; rate=0 is a mathematical limit.

Usage

annuity_factor(rate, years)

Arguments

rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

years

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. No approval of the supplied capitalization rate Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

annuity_factor(0.05, 20)

Check supplied dated evidence; preserve missing, expired, future and failed states.

Description

Check supplied dated evidence; preserve missing, expired, future and failed states.

Usage

assess_evidence(requirements, evidence, as_of, known_at)

Arguments

requirements

Nonempty requirement records requirement_id,scope,allow_not_applicable,source_ref; typically derived from position and pool inputs.

evidence

Dated evidence records evidence_id,requirement_id,scope,valid_from,valid_to,known_from,conclusion,reviewer,source_ref,reason; conclusions are MET/NOT_MET/NOT_APPLICABLE.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

known_at

Knowledge cutoff date, separate from the validity date. Later-known evidence and corrections are excluded.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Checks presence, timing and consistency; does not authenticate evidence or prove all legal duties were included Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Amount prices, Macaulay/modified duration and convexity; positive cashflows.

Description

Amount prices, Macaulay/modified duration and convexity; positive cashflows.

Usage

bond_analytics(amounts, times, yield_rate, frequency, accrued_interest = 0)

Arguments

amounts

Explicit cashflow amounts in one currency, matching times. Signed cashflows are accepted by PV methods; bond yield analytics require nonnegative future payments.

times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

yield_rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

frequency

Payments or yield compounding periods per year. Coupon schedules accept 1, 2, 4 or 12.

accrued_interest

Explicit accrued interest amount subtracted from the dirty amount price to obtain the clean amount price.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Deterministic analyst model; prices are amounts, not per-100 quotations Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Synthetic cashflow-to-pool example with genuine repricing and a coupon liquidity gap.

Description

Synthetic cashflow-to-pool example with genuine repricing and a coupon liquidity gap.

Usage

cashflow_example_pool(kind, scale = 1e+06)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

scale

Positive currency multiplier for synthetic examples. Default one million; 1 produces small independently checkable amounts.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. All legal evidence is fictional; supplied scenario prices are now computed from disclosed cashflows Illustrative annual asset coupons and quarterly bond coupons; no customer data or actual market quotation Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

data <- cashflow_example_pool("FLG")
do.call(analyze_pool, data$value)$value

Three valuations of fixed linear cashflows; FX is a separate currency-net step.

Description

Three valuations of fixed linear cashflows; FX is a separate currency-net step.

Usage

cashflow_scenarios(
  amounts,
  times,
  curve_times,
  zero_rates,
  method,
  history = NULL,
  ddof = 1,
  extrapolation = "error",
  spread = 0
)

Arguments

amounts

Explicit cashflow amounts in one currency, matching times. Signed cashflows are accepted by PV methods; bond yield analytics require nonnegative future payments.

times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

curve_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

zero_rates

Continuously compounded decimal zero rates at the supplied curve nodes. Rates may be negative; no implicit zero floor is imposed.

method

Explicit method selector; supported choices are listed in the function-specific details. No silent fallback to an alternative regulatory method.

history

For dynamic stress: exactly 250 observations. Rate history is a row-by-tenor table; FX history is a positive numeric vector.

ddof

Standard-deviation divisor correction, 0 or 1; the default 1 uses the sample divisor. This explicit statistical convention is retained in output.

extrapolation

error rejects cashflows outside the curve; flat_zero explicitly extends the endpoint zero rates.

spread

Explicit decimal spread. spread shifts the continuous discount curve; margin is added to the floating index coupon.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Fixed amounts are not reprojected under stress; floating coupons must be reprojected separately Not an embedded-option model or independent derivative market price Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

cashflow_scenarios(100, 1, c(0, 2), c(0, 0), method="static")

Apply the §19 minimum haircut to an independently established comparison value.

Description

Apply the §19 minimum haircut to an independently established comparison value.

Usage

comparison_value(base_value, haircut = 0.1)

Arguments

base_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

haircut

Explicit value-reduction fraction. The function applies its documented statutory minimum; a missing input is not a zero haircut.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Comparable selection and adjustments require independent evidence Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Property construction-stage value using confirmed progress and explicit deductions.

Description

Property construction-stage value using confirmed progress and explicit deductions.

Usage

construction_value_limit(
  land_value,
  finished_cost_value,
  finished_income_value,
  progress,
  sustainability_deduction
)

Arguments

land_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

finished_cost_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

finished_income_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

progress

Confirmed construction progress fraction between zero and one; object-specific sustainability deductions remain separate.

sustainability_deduction

Explicit monetary deduction not already included in the input value. demolition_present_value must already be discounted.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Independent construction-progress evidence and market assessment remain required Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Explicit period rates and repayments; remaining principal repaid at maturity.

Description

Explicit period rates and repayments; remaining principal repaid at maturity.

Usage

contract_cashflows(schedule, principal, coupon_rates, amortizations)

Arguments

schedule

Nonempty period records start, end, payment_date, year_fraction, usually returned by coupon_schedule.

principal

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

coupon_rates

One decimal contractual coupon rate per period, including supplied fixings or separately projected floating rates.

amortizations

One nonnegative scheduled repayment per period. The final period repays all remaining principal; over-repayment is rejected.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Rates, resets, option exercise and day-count fractions are explicit contractual inputs Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Cost-value arithmetic with explicit depreciation and separately assessed deductions.

Description

Cost-value arithmetic with explicit depreciation and separately assessed deductions.

Usage

cost_value(
  construction_value,
  land_value,
  age_depreciation,
  safety_haircut = 0.1,
  incidental_rate = 0,
  other_deductions = 0,
  demolition_present_value = 0
)

Arguments

construction_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

land_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

age_depreciation

Explicit accumulated depreciation fraction, between zero and one, applied after the defined construction-value adjustments.

safety_haircut

Explicit value-reduction fraction. The function applies its documented statutory minimum; a missing input is not a zero haircut.

incidental_rate

Eligible incidental-cost fraction, at most 0.20, applied to the safety-adjusted construction value.

other_deductions

Explicit monetary deduction not already included in the input value. demolition_present_value must already be discounted.

demolition_present_value

Explicit monetary deduction not already included in the input value. demolition_present_value must already be discounted.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. §14 demolition assessment for short remaining life remains required Explicit depreciation must follow the documented age model Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Backward anchored schedule with optional short first stub; no adjusted accruals.

Description

Backward anchored schedule with optional short first stub; no adjusted accruals.

Usage

coupon_schedule(
  start,
  maturity,
  frequency,
  day_count,
  business_day,
  holidays,
  end_of_month = FALSE
)

Arguments

start

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

maturity

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

frequency

Payments or yield compounding periods per year. Coupon schedules accept 1, 2, 4 or 12.

day_count

ACT/365F, ACT/360, 30E/360 (European, not ISDA-February), or ACT/ACT-ISDA. Fractions are unrounded.

business_day

unadjusted, following, modified_following, or preceding. Saturday/Sunday and explicitly supplied holidays are nonbusiness days.

holidays

Explicit sequence of holiday dates; an empty sequence means weekends only. No calendar is downloaded.

end_of_month

Boolean month-end anchoring. When true, the supplied maturity must itself be a calendar month end.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Nominal upper bound after rank, redemption and explicit default treatment.

Description

Nominal upper bound after rank, redemption and explicit default treatment.

Usage

cover_amount(
  category,
  claim,
  registered,
  redemption,
  defaulted,
  guaranteed,
  guarantor_defaulted,
  lien = NULL,
  lending_value = NULL,
  prior_claims = NULL,
  guarantee_amount = NULL,
  lending_limit = 0.6
)

Arguments

category

Explicit instrument or liquidity category accepted by the function; classification is never guessed from a free-text security name.

claim

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

registered

Explicit amount assigned to this cover register/tranche, in the same currency as the claim.

redemption

Explicit lower permissible asset redemption amount; enter the claim amount when no lower redemption is possible.

defaulted

Explicit Boolean default or qualifying-guarantee fact. Missing evidence must not be replaced with false.

guaranteed

Explicit Boolean default or qualifying-guarantee fact. Missing evidence must not be replaced with false.

guarantor_defaulted

Explicit Boolean default or qualifying-guarantee fact. Missing evidence must not be replaced with false.

lien

Amount of the institution's own legally effective collateral right, excluding separately specified prior claims.

lending_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

prior_claims

Explicit relevant prior-ranking claims in currency units. Equal-ranking slices must first be allocated consistently with the legal ranking agreement.

guarantee_amount

Amount actually covered by the qualifying guarantee, required only when guaranteed is true.

lending_limit

Eligible first-rank fraction of lending value, expressed as a decimal. Any departure from the regular 0.60 requires an applicable evidenced rule or exception.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. External eligibility, prior/equal rank allocation and the value appraisal remain prerequisites Any lending-limit departure from .60 requires an applicable evidenced exception/profile Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


One homogeneous coverage view; does not certify separate qualifying OC assets.

Description

One homogeneous coverage view; does not certify separate qualifying OC assets.

Usage

coverage_amounts(assets, liabilities, required_overcollateralization)

Arguments

assets

Homogeneous amounts for coverage_amounts, or typed record tables for pool methods. See the per-function table contracts in DATA_CONTRACTS.md.

liabilities

Homogeneous amounts for coverage_amounts, or typed record tables for pool methods. See the per-function table contracts in DATA_CONTRACTS.md.

required_overcollateralization

Required or observed overcollateralization fraction above liabilities, for example 0.02 for 2 percent. Not the asset/liability ratio 1.02.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. No eligibility, separate OC allocation or overall regulatory approval Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


LCR covered-bond category candidates; unknown conditions remain visible.

Description

LCR covered-bond category candidates; unknown conditions remain visible.

Usage

covered_bond_lcr(
  issue_size_eur,
  overcollateralization,
  conditions,
  cqs = NULL,
  unrated_risk_weight = NULL,
  regime = "EU"
)

Arguments

issue_size_eur

Issue amount expressed in EUR, not millions of EUR, for the LCR issuance-size thresholds.

overcollateralization

Required or observed overcollateralization fraction above liabilities, for example 0.02 for 2 percent. Not the asset/liability ratio 1.02.

conditions

LCR condition mapping with Boolean values or None/NULL for unresolved conditions; candidate-specific required keys are retained in the result.

cqs

Directly applicable whole-number credit quality step. The permitted range depends on the mapping or exposure test.

unrated_risk_weight

Explicit decimal risk weight for the unrated route, used only when no directly applicable CQS is supplied.

regime

EU or THIRD_COUNTRY covered-bond LCR route; distinct legal and supervision conditions apply.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Conditions are external legal/portfolio assessments; general operational liquidity requirements remain separately evidenced Uses the explicit locally archived LCR edition; no automatic future-rule substitution Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


CRR Art129 mapping, conditional on separately established full eligibility.

Description

CRR Art129 mapping, conditional on separately established full eligibility.

Usage

covered_bond_risk_weight(
  eligibility_status,
  cqs = NULL,
  issuer_risk_weight = NULL
)

Arguments

eligibility_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

cqs

Directly applicable whole-number credit quality step. The permitted range depends on the mapping or exposure test.

issuer_risk_weight

Explicit decimal risk weight for the unrated route, used only when no directly applicable CQS is supplied.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. No calculation of the issuer risk weight or determination of overall CRR eligibility Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

covered_bond_risk_weight(eligibility_status="MET", cqs=2)

Numerical Art129 OC and bank limits for one homogeneous issue-date cohort.

Description

Numerical Art129 OC and bank limits for one homogeneous issue-date cohort.

Usage

crr_pool_check(
  assets_nominal,
  bonds_nominal,
  bank_exposures,
  issue_date,
  as_of,
  eligibility_status,
  required_oc = 0.05,
  national_reduction_status = "MISSING",
  legacy_status = "MISSING"
)

Arguments

assets_nominal

Aggregate qualified nominal or present value, in one currency. Bond denominators exclude derivative liabilities unless the method explicitly adds them.

bonds_nominal

Aggregate qualified nominal or present value, in one currency. Bond denominators exclude derivative liabilities unless the method explicitly adds them.

bank_exposures

Art129 bank records exposure_id,amount,cqs,oc_amount,settlement_amount,category,original_days,approved; OC and settlement exemptions must not overlap beyond the amount.

issue_date

Original issue date used for the explicitly described label or CRR transition rules.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

eligibility_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

required_oc

Required or observed overcollateralization fraction above liabilities, for example 0.02 for 2 percent. Not the asset/liability ratio 1.02.

national_reduction_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

legacy_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

Details

Only one homogeneous issue-date cohort per call. Documented pre-2007 and pre-2022 cohorts have different Article129 exemptions. Eligible collateral, per-loan caps, valuation and legal qualification must be independently assessed; a numerical limit pass alone does not establish Article129 eligibility. Requires separately evidenced eligible collateral, per-loan limits, Art208/229 valuation and legal qualifications Issue-date cohorts must be homogeneous; this is not a general RWA calculation Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Simple contractual accrual on a deferred amount, including capitalized overdue interest.

Description

Simple contractual accrual on a deferred amount, including capitalized overdue interest.

Usage

deferred_interest(amount, coupon_rate, original_date, new_date, day_count)

Arguments

amount

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

coupon_rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

original_date

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

new_date

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

day_count

ACT/365F, ACT/360, 30E/360 (European, not ISDA-February), or ACT/ACT-ISDA. Fractions are unrounded.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Applies the supplied existing coupon and convention; differing contractual agreements require explicit inputs Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Continuous zero rates; linear zero interpolation; optional explicit flat extrapolation.

Description

Continuous zero rates; linear zero interpolation; optional explicit flat extrapolation.

Usage

discount_factors(
  times,
  curve_times,
  zero_rates,
  extrapolation = "error",
  spread = 0
)

Arguments

times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

curve_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

zero_rates

Continuously compounded decimal zero rates at the supplied curve nodes. Rates may be negative; no implicit zero floor is imposed.

extrapolation

error rejects cashflows outside the curve; flat_zero explicitly extends the endpoint zero rates.

spread

Explicit decimal spread. spread shifts the continuous discount curve; margin is added to the floating index coupon.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Parallel continuous-zero-rate finite differences; separate from statutory stress.

Description

Parallel continuous-zero-rate finite differences; separate from statutory stress.

Usage

effective_sensitivities(
  amounts,
  times,
  curve_times,
  zero_rates,
  bump = 1e-04,
  spread = 0,
  extrapolation = "error"
)

Arguments

amounts

Explicit cashflow amounts in one currency, matching times. Signed cashflows are accepted by PV methods; bond yield analytics require nonnegative future payments.

times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

curve_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

zero_rates

Continuously compounded decimal zero rates at the supplied curve nodes. Rates may be negative; no implicit zero floor is imposed.

bump

Positive decimal parallel zero-curve perturbation for analyst finite differences; the default 0.0001 is one basis point.

spread

Explicit decimal spread. spread shifts the continuous discount curve; margin is added to the floating index coupon.

extrapolation

error rejects cashflows outside the curve; flat_zero explicitly extends the endpoint zero rates.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Signed offsetting cashflows may make relative measures unstable; this is not a regulatory stress decision Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Find an explicitly bounded result-equivalent capitalization rate, BelWertV §25(5).

Description

Find an explicitly bounded result-equivalent capitalization rate, BelWertV §25(5).

Usage

equivalent_cap_rate(
  net_income,
  target_value,
  land_value,
  years,
  lower,
  upper,
  short_life_method = NULL,
  tolerance = 1e-10,
  max_iterations = 256
)

Arguments

net_income

Sustainable annual income in currency units; net_income already reflects the deductions required by the chosen method, unless explicitly used to solve an equivalent rate.

target_value

Independently established target income value, including all required cost deductions, for capitalization-rate equivalence.

land_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

years

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

lower

Explicit numerical search bracket. The function rejects an unbracketed target and never silently expands the interval.

upper

Explicit numerical search bracket. The function rejects an unbracketed target and never silently expands the interval.

short_life_method

For remaining life below 30 years: capitalize_land or, where supported, deduct_demolition. Standard long-life valuation rejects this argument.

tolerance

Positive convergence tolerance under the function's documented price/value residual convention.

max_iterations

Positive whole-number iteration limit; failure to converge raises NO_CONVERGENCE.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Target value must independently include required costs; no method eligibility is inferred Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


German PfandBG §41a label conditions, separate from investor risk weights.

Description

German PfandBG §41a label conditions, separate from investor risk weights.

Usage

european_label(kind, issue_date, pfandbrief_status)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

issue_date

Original issue date used for the explicitly described label or CRR transition rules.

pfandbrief_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Applies to German Pfandbriefe; qualifying foreign instruments require their own supervisory evidence Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Build a synthetic EUR par-value pool and explicitly fictional evidence.

Description

Build a synthetic EUR par-value pool and explicitly fictional evidence.

Usage

example_pool(kind, scale = 1e+06)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

scale

Positive currency multiplier for synthetic examples. Default one million; 1 produces small independently checkable amounts.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. All evidence and scenario values are fictional; never reuse as actual regulatory evidence No cashflows within 180 days assumed; this example illustrates integration, not realistic interest-rate dynamics Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

example_pool("SCH", scale=1)

Write flat scalar records to an explicit CSV path; no package-resource writes.

Description

Write flat scalar records to an explicit CSV path; no package-resource writes.

Usage

export_table(rows, path, overwrite = FALSE)

Arguments

rows

Nonempty homogeneous flat records for CSV export; values are strings, finite numeric scalars, Booleans or missing values.

path

Explicit local output filename. Its parent directory must exist; installed package resources are read-only export targets.

overwrite

Explicit Boolean permission to replace an existing output file. Default false protects an existing file.

Details

UTF-8 CSV, comma delimiter, quoted cells, decimal point and 17 significant numeric digits. Missing values become empty fields. For lossless nested native results use Python JSON from as_dict or R saveRDS. No official regulatory filing format is produced. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Check an issue-uniform principal deferral scenario and repayment order.

Description

Check an issue-uniform principal deferral scenario and repayment order.

Usage

extension_plan(
  kind,
  issues,
  appointment_date,
  decision_date,
  authority_status,
  conditions_status,
  complete_scope_status
)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

issues

One principal-deferral record per issue: issue_id,kind,original_date,new_date,principal,shifted_fraction,coupon_rate,day_count.

appointment_date

Evidenced administrator appointment or decision date, YYYY-MM-DD. A decision cannot precede the appointment.

decision_date

Evidenced administrator appointment or decision date, YYYY-MM-DD. A decision cannot precede the appointment.

authority_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

conditions_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

complete_scope_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

Details

Principal-only scenario with two possible payment dates per issue: unshifted share and deferred share. Maximum shift is 12 calendar months. At each planned payment date, later-originally-due issues cannot have a higher repayment fraction than an earlier still-outstanding issue. This leaves base contractual cashflows unchanged. Explicit principal-only two-payment scenario per issue; no automatic modification of base cashflows Complete scope evidence must cover all affected issues, interest-payment interactions and contractual departures Derivatives and new administrator liabilities are outside the statutory deferral power Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Foreign perpetuity value after an explicit compensating building-depreciation cost.

Description

Foreign perpetuity value after an explicit compensating building-depreciation cost.

Usage

foreign_perpetuity_value(
  net_income,
  rate,
  additional_depreciation,
  method_evidence
)

Arguments

net_income

Sustainable annual income in currency units; net_income already reflects the deductions required by the chosen method, unless explicitly used to solve an equivalent rate.

rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

additional_depreciation

Explicit annual building depreciation deduction compensating for finite actual life in the foreign perpetuity convention.

method_evidence

Explicit Boolean evidence that the special foreign valuation method is applicable; the calculation does not authenticate the evidence.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Additional depreciation must adequately compensate the actual shorter economic life Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Relative FX shock. Explicit country group; no built-in mutable country list.

Description

Relative FX shock. Explicit country group; no built-in mutable country list.

Usage

fx_shock(
  method,
  currency_group = NULL,
  history = NULL,
  other_haircut = NULL,
  ddof = 1
)

Arguments

method

Explicit method selector; supported choices are listed in the function-specific details. No silent fallback to an alternative regulatory method.

currency_group

Static FX class EU_EEA_CH, US_CA_UK_JP, or OTHER. Country/currency classification is a supplied, separately evidenced fact.

history

For dynamic stress: exactly 250 observations. Rate history is a row-by-tenor table; FX history is a positive numeric vector.

other_haircut

Explicit static OTHER-currency haircut, at least 0.25. Not used for the other static classes or dynamic FX stress.

ddof

Standard-deviation divisor correction, 0 or 1; the default 1 uses the sample divisor. This explicit statistical convention is retained in output.

Details

method is static or dynamic. Static group haircuts are 0.10,0.20,or explicit OTHER>=0.25. Dynamic uses log changes of 250 positive FX observations, 2.33*sqrt(125) and the explicit ddof convention. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Income approach including §13 alternatives; returns unrounded monetary value.

Description

Income approach including §13 alternatives; returns unrounded monetary value.

The net income must already include adequate operating-cost deductions. For a remaining life below 30 years explicitly select capitalize_land or deduct_demolition. Nonpositive building income requires land_release_years.

Usage

income_value(
  net_income,
  land_value,
  rate,
  years,
  short_life_method = NULL,
  demolition_costs = NULL,
  land_release_years = NULL
)

Arguments

net_income

Sustainable annual income in currency units; net_income already reflects the deductions required by the chosen method, unless explicitly used to solve an equivalent rate.

land_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

years

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

short_life_method

For remaining life below 30 years: capitalize_land or, where supported, deduct_demolition. Standard long-life valuation rejects this argument.

demolition_costs

Nonnegative future demolition amount; land_release_years supplies its discount horizon in the selected short-life branch.

land_release_years

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

Details

For positive building income N-zB and life>=30: B+(N-zB)*annuity_factor(z,n). For life<30 choose capitalize_land (N*factor) or deduct_demolition. Nonpositive building income needs both demolition_costs and land_release_years and yields the discounted land-only amount. Rate, net income, land estimate and valuation evidence are supplied inputs Not a binding lending-value determination Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

income_value(10000, 50000, 0.05, 40)

Per-unit annual residential minimum; CPI series must have the same index base.

Description

Per-unit annual residential minimum; CPI series must have the same index base.

Usage

indexed_administration_cost(
  unit_type,
  october_cpi_previous_year,
  october_cpi_2001
)

Arguments

unit_type

dwelling, condominium, or garage for the applicable indexed annual administration-cost base.

october_cpi_previous_year

Positive compatible October consumer-price index values for the prior year and 2001; no index series is fetched.

october_cpi_2001

Positive compatible October consumer-price index values for the prior year and 2001; no index series is fetched.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. CPI period, common index base and official data source require external verification Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Amount test only; rights, insured risks and notices remain separate evidence.

Description

Amount test only; rights, insured risks and notices remain separate evidence.

Usage

insurance_check(
  kind,
  insured_amount,
  claim,
  prior_equal_claims = 0,
  basis = NULL,
  reconstruction_cost = NULL,
  probable_maximum_loss = NULL,
  current_value_loss = NULL
)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

insured_amount

Actual available insurance amount under the selected permissible insurance basis, in the same currency as the claim.

claim

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

prior_equal_claims

Prior- or equal-ranking third-party ship/aircraft rights to be added after calculating 110 percent of the own outstanding loan.

basis

HYP insurance basis: reconstruction, probable_maximum_loss, or claim_current_value. SCH/FLG instead use claim and third-party rights.

reconstruction_cost

Nonnegative amount for the selected property-insurance basis; supply only that basis, not contradictory unused amounts.

probable_maximum_loss

Nonnegative amount for the selected property-insurance basis; supply only that basis, not contradictory unused amounts.

current_value_loss

Nonnegative amount for the selected property-insurance basis; supply only that basis, not contradictory unused amounts.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Transport formula: 110% of own outstanding claim plus prior/equal third-party rights Does not establish insured risks, legal entitlement, notices or annual loss-cap validity Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


First-month interest deferral to the end of the month following appointment.

Description

First-month interest deferral to the end of the month following appointment.

Usage

interest_extension(
  amount,
  coupon_rate,
  original_date,
  appointment_date,
  decision_date,
  day_count,
  authority_status
)

Arguments

amount

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

coupon_rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

original_date

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

appointment_date

Evidenced administrator appointment or decision date, YYYY-MM-DD. A decision cannot precede the appointment.

decision_date

Evidenced administrator appointment or decision date, YYYY-MM-DD. A decision cannot precede the appointment.

day_count

ACT/365F, ACT/360, 30E/360 (European, not ISDA-February), or ACT/ACT-ISDA. Fractions are unrounded.

authority_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Requires evidenced administrator authority and separate reconciliation of all affected emissions Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Linear age depreciation as one minus remaining life divided by total life.

Description

Linear age depreciation as one minus remaining life divided by total life.

Usage

linear_depreciation(remaining_life, total_life)

Arguments

remaining_life

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

total_life

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Art9 market-value haircut or <=3-calendar-month qualified bank deposit.

Description

Art9 market-value haircut or <=3-calendar-month qualified bank deposit.

Usage

liquid_buffer_value(
  market_value,
  category,
  qualification_status,
  haircut = NULL,
  additional_fx_haircut = 0,
  as_of = NULL,
  maturity = NULL
)

Arguments

market_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

category

Explicit instrument or liquidity category accepted by the function; classification is never guessed from a free-text security name.

qualification_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

haircut

Explicit value-reduction fraction. The function applies its documented statutory minimum; a missing input is not a zero haircut.

additional_fx_haircut

Additional explicit FX haircut applied to the value remaining after the asset-class liquidity haircut.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

maturity

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

Details

Categories: LEVEL1_OTHER,LEVEL1_COVERED,LEVEL2A,LEVEL2B_COVERED,LEVEL2B_OTHER,LEVEL2B_SECURITIZATION,RESTRICTED_FACILITY,BANK_DEPOSIT. Minimum haircuts are 0,.07,.15,.30,.50 for the first five. The last two specialized LCR categories need an explicit haircut. BANK_DEPOSIT needs as_of and maturity within three calendar months. Qualification includes asset-specific and general requirements; it is not established by the haircut calculation No total LCR composition caps are imposed on the Pfandbrief liquidity buffer Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

liquid_buffer_value(100, "LEVEL1_COVERED", qualification_status="MET")

Exactly 180 following calendar days; no assumed maturity extension or reinvestment.

Description

Exactly 180 following calendar days; no assumed maturity extension or reinvestment.

Usage

liquidity_180(as_of, cashflows, buffers)

Arguments

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

cashflows

Records flow_id, position_id, date, inflow, outflow. All days are retained by the 180-day ledger; dates after the horizon do not affect its maximum deficit.

buffers

Records asset_id, qualified_value, monetized, qualification_ref. Monetized asset inflows are removed; payment obligations remain.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Buffer qualification and amounts must be supplied separately in the cashflow reporting currency Monetized assets lose their contractual inflows; payments owed remain included Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Worst cumulative daily deficit; vectors contain every day of the chosen horizon.

Description

Worst cumulative daily deficit; vectors contain every day of the chosen horizon.

Usage

liquidity_gap(inflows, outflows, buffer)

Arguments

inflows

Nonnegative daily amount vectors, including days with zero flows, in one currency and with equal length.

outflows

Nonnegative daily amount vectors, including days with zero flows, in one currency and with equal length.

buffer

Already qualified and valued liquidity buffer amount in the same currency as the daily flows.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Caller must supply the full regulatory horizon and qualified valued buffer Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Calendar-month bands for explicitly supplied maturity or repricing dates.

Description

Calendar-month bands for explicitly supplied maturity or repricing dates.

Usage

maturity_buckets(positions, as_of)

Arguments

positions

Function-specific position records. Integrated pools require the complete common universe; metrics require their documented fields. See DATA_CONTRACTS.md.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Use bond maturity for liabilities and contractual repricing date for cover assets Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Permitted location group and fixed-term-right calendar boundaries.

Description

Permitted location group and fixed-term-right calendar boundaries.

Usage

mortgage_terms_check(
  country_group,
  maturity,
  permanent_income,
  construction_or_land,
  right_expiry = NULL,
  economic_end = NULL
)

Arguments

country_group

EU_EEA, CH, GB, US, CA, JP, AU, NZ, SG, or OTHER for the mortgage-location test; group membership itself requires evidence.

maturity

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

permanent_income

Explicit Boolean permanent-income or permitted construction/building-land facts used in the property eligibility check.

construction_or_land

Explicit Boolean permanent-income or permitted construction/building-land facts used in the property eligibility check.

right_expiry

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

economic_end

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Country membership, comparable legal rights and lasting income require evidence Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Component minima, 15% aggregate floor and actual total; all costs annual.

Description

Component minima, 15% aggregate floor and actual total; all costs annual.

Usage

operating_costs(
  gross_income,
  construction_cost,
  use,
  maintenance_class,
  modernization_class,
  estimates,
  actual_total,
  residential_administration_floor = NULL
)

Arguments

gross_income

Sustainable annual income in currency units; net_income already reflects the deductions required by the chosen method, unless explicitly used to solve an equivalent rate.

construction_cost

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

use

residential or commercial; determines the applicable operating-cost floors.

maintenance_class

simple, medium, or high construction/equipment class for the statutory maintenance-cost rate.

modernization_class

none, low, medium, or high modernization risk, as explicitly appraised.

estimates

Mapping of five annual estimates: administration, maintenance, rent_loss, operating, modernization; amounts use one currency.

actual_total

Actual annual total operating costs, used as an additional minimum rather than silently discarded.

residential_administration_floor

Explicit annual residential administration-cost floor, commonly assembled using indexed_administration_cost and the number of units.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Acute rent default is a separate value deduction; risk classification requires appraisal Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Calculation Result Contract

Description

A result contains the calculated value, method, source references, unit, status, intermediate details and explicit limitations. CALCULATED denotes arithmetic completion, not regulatory or institutional approval.

Usage

## S3 method for class 'pfandbrief_result'
print(x, ...)

Arguments

x

A calculation result.

...

Reserved print arguments.

Value

The print method returns its input invisibly.


Coverage of qualified single-currency amounts with disjoint OC reservations.

Description

Coverage of qualified single-currency amounts with disjoint OC reservations.

Usage

pool_coverage(
  kind,
  assets,
  liabilities,
  oc_allocations,
  additional_nominal = 0,
  additional_pv = 0
)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

assets

Homogeneous amounts for coverage_amounts, or typed record tables for pool methods. See the per-function table contracts in DATA_CONTRACTS.md.

liabilities

Homogeneous amounts for coverage_amounts, or typed record tables for pool methods. See the per-function table contracts in DATA_CONTRACTS.md.

oc_allocations

Records asset_id, role (NOMINAL_OC/PV_OC), fraction in [0,1]; total reserved fractions per asset cannot exceed one.

additional_nominal

Explicit additional nominal or present-value cover requirement in currency units, including applicable supervisory/contractual requirements. Zero must be justified.

additional_pv

Explicit additional nominal or present-value cover requirement in currency units, including applicable supervisory/contractual requirements. Zero must be justified.

Details

Assets are already qualified amounts in one currency. OC roles reserve disjoint fractions. Nominal coverage excludes the nominal value reserved for PV OC and requires sufficient unreserved base cover; separate reserve-amount and total-PV tests remain mandatory. Amounts must be qualified, registered and expressed in one reporting currency Checks the supplied reservations; does not optimize or authenticate qualification Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Statutory concentration arithmetic on explicitly classified qualified amounts.

Description

Statutory concentration arithmetic on explicitly classified qualified amounts.

Usage

pool_limits(kind, assets, bond_nominal, bond_pv, derivative_liabilities)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

assets

Homogeneous amounts for coverage_amounts, or typed record tables for pool methods. See the per-function table contracts in DATA_CONTRACTS.md.

bond_nominal

Aggregate qualified nominal or present value, in one currency. Bond denominators exclude derivative liabilities unless the method explicitly adds them.

bond_pv

Aggregate qualified nominal or present value, in one currency. Bond denominators exclude derivative liabilities unless the method explicitly adds them.

derivative_liabilities

Records liability_id, kind, present_value, pure_fx_hedge. Negative derivative values remain covered even when evidence is incomplete.

Details

T1/T2/T3/T4 limits are cumulative 8/10/15/20 percent, with no generic T4 limit for OEF. Pure-liquidity and PV-OC exemptions have distinct scopes. The bank-group limit is not automatically waived for PV OC. All classifications require evidence. Classification, exemptions, foreign priority and any special permissions require separate evidence No generic exemption from the bank-group limit for PV OC assets Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Extract reconciled metrics from one analyze_pool result, retaining its decision.

Description

Extract reconciled metrics from one analyze_pool result, retaining its decision.

Usage

pool_metrics(result)

Arguments

result

A native result returned specifically by analyze_pool, retaining coverage, limits, stress, liquidity, evidence and atomic positions.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. No complete statutory disclosure or supervisory filing; stress is reported as a net balance Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

pool_metrics(do.call(analyze_pool, example_pool("OEF")$value))

Derive all mandatory position and pool evidence before an integrated run.

Description

Derive all mandatory position and pool evidence before an integrated run.

Usage

pool_requirements(kind, positions, oc_allocations, buffers)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

positions

Function-specific position records. Integrated pools require the complete common universe; metrics require their documented fields. See DATA_CONTRACTS.md.

oc_allocations

Records asset_id, role (NOMINAL_OC/PV_OC), fraction in [0,1]; total reserved fractions per asset cannot exceed one.

buffers

Records asset_id, qualified_value, monetized, qualification_ref. Monetized asset inflows are removed; payment obligations remain.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Net stressed values by currency, then apply adverse FX; three scenarios required.

Description

Net stressed values by currency, then apply adverse FX; three scenarios required.

Usage

pool_stress(kind, valuations, fx_rates)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

valuations

Records position_id, kind, currency, scenario (BASE/UP/DOWN), signed_present_value; every position must occur in all three scenarios.

fx_rates

Records currency, eur_per_unit, shock. EUR requires 1 and 0. Every position currency must have an explicit row.

Details

Input is one signed valuation per position and BASE/UP/DOWN scenario. UP/DOWN are currency-netted before adverse FX. The highest deficit is relative to base coverage, without adding a new 2-percent OC requirement inside every stress. Each scenario must contain independently qualified valuations and all derivative liabilities Separate base PV OC requirement is checked by pool_coverage Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Signed deterministic cashflows in a single currency.

Description

Signed deterministic cashflows in a single currency.

Usage

present_value(
  amounts,
  times,
  curve_times,
  zero_rates,
  extrapolation = "error",
  spread = 0
)

Arguments

amounts

Explicit cashflow amounts in one currency, matching times. Signed cashflows are accepted by PV methods; bond yield analytics require nonnegative future payments.

times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

curve_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

zero_rates

Continuously compounded decimal zero rates at the supplied curve nodes. Rates may be negative; no implicit zero floor is imposed.

extrapolation

error rejects cashflows outside the curve; flat_zero explicitly extends the endpoint zero rates.

spread

Explicit decimal spread. spread shifts the continuous discount curve; margin is added to the floating index coupon.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Does not value embedded options or replace independent derivative market prices Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


In-advance simple forward coupons with explicit historical fixings and bound basis.

Description

In-advance simple forward coupons with explicit historical fixings and bound basis.

Usage

project_floating_coupons(
  reset_times,
  start_times,
  end_times,
  accrual_fractions,
  fixings,
  curve_times,
  zero_rates,
  margin = 0,
  floor = NULL,
  cap = NULL,
  bound_on = "all_in",
  extrapolation = "error"
)

Arguments

reset_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

start_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

end_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

accrual_fractions

Positive contractual coupon year fractions, separately supplied from the projection curve time coordinates.

fixings

One actual index fixing per past/current reset and None/NULL per future reset. R uses a list to retain missing elements; no NA fallback.

curve_times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

zero_rates

Continuously compounded decimal zero rates at the supplied curve nodes. Rates may be negative; no implicit zero floor is imposed.

margin

Explicit decimal spread. spread shifts the continuous discount curve; margin is added to the floating index coupon.

floor

Optional decimal coupon/index bounds, explicitly distinguished by bound_on. No implied option price is calculated.

cap

Optional decimal coupon/index bounds, explicitly distinguished by bound_on. No implied option price is calculated.

bound_on

index applies bounds before adding margin; all_in applies bounds to index plus margin.

extrapolation

error rejects cashflows outside the curve; flat_zero explicitly extends the endpoint zero rates.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Projection curve and coupon day fractions are explicit inputs; no option time value or in-arrears convexity model Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Domestic annex life/rate controls; the official effective base rate is supplied.

Description

Domestic annex life/rate controls; the official effective base rate is supplied.

Usage

property_parameter_check(
  property_use,
  remaining_life,
  capitalization_rate,
  notified_base_rate,
  prime_reduction = 0,
  prime_conditions = NULL,
  prime_reason = NULL
)

Arguments

property_use

Statutory property-use class; see the full allowed class/life/supplement table in the handbook.

remaining_life

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

capitalization_rate

Rate as a decimal, for example 0.05 for 5 percent. Its compounding and admissible bounds follow the selected method.

notified_base_rate

Explicit applicable notified capitalization base rate. The library does not fetch or silently assume a current BaFin notification.

prime_reduction

Proposed prime-property rate reduction as a decimal, at most 0.005, requiring the specified conditions and a documented reason.

prime_conditions

Mapping of the eight explicit Boolean prime conditions: urban_location, preferred_site, infrastructure, concept, equipment, construction, marketability, condition.

prime_reason

Nonempty justification for a prime-property rate reduction; required whenever a reduction is claimed.

Details

Use classes and maximum lives: residential80; office/business60; department_store/shopping_center/hotel/agricultural/clinic/rehabilitation/care_home/logistics/parking/production40; leisure/specialty_market/consumer_market/petrol_station30. Supplemental capitalization rates and the eight prime conditions are checked in addition to the explicitly supplied notified base. Official notice, effective date, market derivation and prime evidence remain externally verified inputs Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Arithmetic bound and explicitly unresolved method evidence; no value-setting authority.

Description

Arithmetic bound and explicitly unresolved method evidence; no value-setting authority.

Usage

property_value_check(
  proposed_value,
  market_value,
  method,
  control_value,
  income_estimate = NULL,
  deductions = 0,
  deductions_not_already_included,
  property_type = "other",
  owner_occupation_suitability = NULL,
  rented = FALSE,
  rental_deduction = NULL,
  comparable_count = NULL,
  qualified_model = NULL,
  sustainability_review = NULL
)

Arguments

proposed_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

market_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

method

Explicit method selector; supported choices are listed in the function-specific details. No silent fallback to an alternative regulatory method.

control_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

income_estimate

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

deductions

Explicit monetary deduction not already included in the input value. demolition_present_value must already be discounted.

deductions_not_already_included

Mandatory Boolean assertion that the newly supplied deductions were not already incorporated in the underlying value.

property_type

Property-method class: condominium, single_family, duplex, or other. Determines comparison-count and own-occupation checks.

owner_occupation_suitability

Boolean external assessment (or None/NULL when unresolved). An unresolved applicable assessment yields REVIEW_REQUIRED rather than automatic approval.

rented

Explicit Boolean indication that the owner-suitable property is rented and therefore needs the documented rental deduction.

rental_deduction

Explicit monetary adjustment for rental restrictions when required by the chosen property-method branch.

comparable_count

Whole number of suitably comparable objects; applicable direct-comparison branches require the documented minimum.

qualified_model

Boolean external assessment (or None/NULL when unresolved). An unresolved applicable assessment yields REVIEW_REQUIRED rather than automatic approval.

sustainability_review

Boolean external assessment (or None/NULL when unresolved). An unresolved applicable assessment yields REVIEW_REQUIRED rather than automatic approval.

Details

Methods: income_standard, owner_cost, owner_comparison. Proposed lending value is capped by the selected method and market value after new deductions. A control value below 80 percent of the income estimate triggers a sustainability review; it is not automatically substituted as the value. Supplied evidence flags are not authenticated; formal appraisal and value determination remain external Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Decimal up/down shocks. Dynamic history: 250 rows, columns correspond to tenors.

Description

Decimal up/down shocks. Dynamic history: 250 rows, columns correspond to tenors.

Usage

rate_shocks(current_rates, method, tenors = NULL, history = NULL, ddof = 1)

Arguments

current_rates

Continuously compounded decimal zero rates at the supplied curve nodes. Rates may be negative; no implicit zero floor is imposed.

method

Explicit method selector; supported choices are listed in the function-specific details. No silent fallback to an alternative regulatory method.

tenors

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

history

For dynamic stress: exactly 250 observations. Rate history is a row-by-tenor table; FX history is a positive numeric vector.

ddof

Standard-deviation divisor correction, 0 or 1; the default 1 uses the sample divisor. This explicit statistical convention is retained in output.

Details

method is static or dynamic. Static shocks are +/-0.025. Dynamic history needs 250 rows and at least seven nodes including 1/12,1,2,5,7,10,15 years. A nonpositive historical rate anywhere selects absolute changes for the entire currency curve; otherwise log changes are used. The shift has a 0.01 minimum. Historical bank-day calendar, method continuity and approvals require evidence Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Numerical reconciliation tolerance; never changes a statutory limit decision.

Description

Numerical reconciliation tolerance; never changes a statutory limit decision.

Usage

reconcile_totals(
  actual,
  expected,
  absolute_tolerance = 1e-08,
  relative_tolerance = 1e-12
)

Arguments

actual

Named numeric mappings for reconciliation. Absent/None/NULL values produce INCOMPLETE rather than a zero comparison.

expected

Named numeric mappings for reconciliation. Absent/None/NULL values produce INCOMPLETE rather than a zero comparison.

absolute_tolerance

Explicit numerical reconciliation tolerance. It is not applied to statutory limit or eligibility boundary decisions.

relative_tolerance

Explicit numerical reconciliation tolerance. It is not applied to statutory limit or eligibility boundary decisions.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Replay local evidenced events; never edits input history or a live legal register.

Description

Replay local evidenced events; never edits input history or a live legal register.

Usage

register_snapshot(events, as_of, known_at)

Arguments

events

Immutable register-event records described in DATA_CONTRACTS.md. This reconstructs analytical state and does not authorize legal backdating.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

known_at

Knowledge cutoff date, separate from the validity date. Later-known evidence and corrections are excluded.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Technical reconstruction does not establish trustee approval or legal registration Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Derive a nonempty evidence contract from position category and explicit features.

Description

Derive a nonempty evidence contract from position category and explicit features.

Usage

required_evidence(kind, position_id, category, features = character())

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

position_id

Stable nonempty position/scope identifier, unique within the relevant input table.

category

Explicit instrument or liquidity category accepted by the function; classification is never guessed from a free-text security name.

features

Explicit list of applicable evidence/register features; optional conditions cannot be hidden by omitting a feature that is actually present.

Details

Categories: MORTGAGE,PUBLIC,SHIP,AIRCRAFT,SUBSTITUTE,DERIVATIVE,BOND. Features: foreign,partial,refinancing,guaranteed,pv_oc,liquidity,legacy,exception,own_held,payment_settlement. Legal evidence is assessed, not authenticated. Requires truthful position classification; presence of evidence does not authenticate its conclusion Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Allocate one explicitly established seniority slice; no legal eligibility decision.

Description

Allocate one explicitly established seniority slice; no legal eligibility decision.

Usage

secured_amount(
  claim,
  lien,
  lending_value,
  prior_claims,
  assigned_amount,
  lending_limit
)

Arguments

claim

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

lien

Amount of the institution's own legally effective collateral right, excluding separately specified prior claims.

lending_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

prior_claims

Explicit relevant prior-ranking claims in currency units. Equal-ranking slices must first be allocated consistently with the legal ranking agreement.

assigned_amount

Explicit amount assigned to this cover register/tranche, in the same currency as the claim.

lending_limit

Eligible first-rank fraction of lending value, expressed as a decimal. Any departure from the regular 0.60 requires an applicable evidenced rule or exception.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Requires separately established eligibility, legal rank and unique allocation Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Choose latest known revision before checking validity; never resurrect withdrawn dates.

Description

Choose latest known revision before checking validity; never resurrect withdrawn dates.

Usage

select_rule_profile(
  profiles,
  profile_id,
  as_of,
  known_at,
  allow_experimental = FALSE
)

Arguments

profiles

Rule-profile revision records profile_id,revision,valid_from,valid_to,known_from,status,source_ref,parameters. Latest-known revision is selected before checking validity.

profile_id

Exact explicitly requested rule-profile identifier; no nearest-date or default-profile fallback.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

known_at

Knowledge cutoff date, separate from the validity date. Later-known evidence and corrections are excluded.

allow_experimental

Explicit opt-in to a profile whose supplied status is EXPERIMENTAL. VERIFIED is supplied provenance, not an authenticated review.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Profile status is supplied provenance, not authentication of a legal review Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Compare a proposed value to the externally confirmed construction-state value.

Description

Compare a proposed value to the externally confirmed construction-state value.

Usage

ship_construction_value_check(
  proposed_value,
  confirmed_state_value,
  market_value,
  confirmation_status
)

Arguments

proposed_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

confirmed_state_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

market_value

Explicit monetary value in the common calculation currency. Valuation bases, scope and expert evidence must be consistent with the selected method.

confirmation_status

Explicit external assessment: MET, NOT_MET or MISSING. The function preserves missing/negative evidence rather than inventing approval.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. State value and construction progress must be confirmed by the yard or technical expert; no statutory linear-progress formula is assumed Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Ship value upper bound; not the valuation or approval of an alternative method.

Description

Ship value upper bound; not the valuation or approval of an alternative method.

Usage

ship_value_limit(
  current_market_value,
  average_market_value,
  price,
  history_years,
  extra_haircut = 0
)

Arguments

current_market_value

Monetary market/value/price input. A missing transport market value is None/NULL only in a documented alternative branch; bond price is a dirty amount price.

average_market_value

Monetary market/value/price input. A missing transport market value is None/NULL only in a documented alternative branch; bond price is a dirty amount price.

price

Monetary market/value/price input. A missing transport market value is None/NULL only in a documented alternative branch; bond price is a dirty amount price.

history_years

Whole number of years of usable comparable-market history, from 0 through 10; missing averages require zero.

extra_haircut

Explicit value-reduction fraction. The function applies its documented statutory minimum; a missing input is not a zero haircut.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Upper limit only; a sustainable appraised value must be established separately Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


§24 amount/use and inspection-exception checks; no waiver of other valuation duties.

Description

§24 amount/use and inspection-exception checks; no waiver of other valuation duties.

Usage

small_loan_check(
  loan_amount,
  prior_liens,
  commercial_income_share,
  domestic_residential,
  inspection_mode,
  years_since_inspection = NULL,
  known_object = FALSE,
  comparable_object = FALSE,
  prefabricated_known = FALSE,
  remaining_life = NULL,
  video_complete = FALSE,
  video_documented = FALSE,
  valuation_haircut = 0,
  essential_parameters_known = FALSE,
  building_age = NULL,
  reason_documented = FALSE
)

Arguments

loan_amount

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

prior_liens

Explicit relevant prior-ranking claims in currency units. Equal-ranking slices must first be allocated consistently with the legal ranking agreement.

commercial_income_share

Fraction of sustainable income from commercial use for the small-loan test, between zero and one.

domestic_residential

Explicit Boolean confirmation of the domestic predominantly residential scope of the small-loan provision.

inspection_mode

full, known, comparable, prefabricated, video, or exterior_only. Each exception requires its documented qualifying conditions.

years_since_inspection

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

known_object

Explicit Boolean evidence for the selected inspection simplification; unrelated true flags do not replace its required conditions.

comparable_object

Explicit Boolean evidence for the selected inspection simplification; unrelated true flags do not replace its required conditions.

prefabricated_known

Explicit Boolean evidence for the selected inspection simplification; unrelated true flags do not replace its required conditions.

remaining_life

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

video_complete

Explicit Boolean evidence for the selected inspection simplification; unrelated true flags do not replace its required conditions.

video_documented

Explicit Boolean evidence for the selected inspection simplification; unrelated true flags do not replace its required conditions.

valuation_haircut

Explicit value-reduction fraction. The function applies its documented statutory minimum; a missing input is not a zero haircut.

essential_parameters_known

Explicit Boolean evidence for the selected inspection simplification; unrelated true flags do not replace its required conditions.

building_age

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

reason_documented

Explicit Boolean evidence for the selected inspection simplification; unrelated true flags do not replace its required conditions.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Qualification, independence, simplified valuation, sampling and exception evidence remain required Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Adverse EUR value after currency-level asset/liability netting.

Description

Adverse EUR value after currency-level asset/liability netting.

Usage

stressed_fx_net(net_amount, eur_per_unit, shock)

Arguments

net_amount

Signed net asset minus liability present value in one foreign currency, after interest-rate stress.

eur_per_unit

Positive spot EUR value of one foreign-currency unit; reciprocal quotations are not inferred.

shock

Nonnegative relative adverse FX shock applied to the absolute net currency exposure.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Annual amortization, permitted balloon, life and deferral checks for SCH/FLG.

Description

Annual amortization, permitted balloon, life and deferral checks for SCH/FLG.

Usage

transport_loan_check(
  kind,
  loan_amount,
  annual_amortizations,
  balloon,
  age_at_maturity,
  expected_life,
  defer_years,
  maturity_exception = FALSE,
  repayment_exception = FALSE,
  defer_exception = FALSE,
  extended_forbearance = FALSE,
  trustee_consent = FALSE,
  reconciliation_tolerance = 1e-08
)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

loan_amount

Nonnegative monetary principal or claim in the calculation currency; no implicit conversion or scaling is performed.

annual_amortizations

Annual regular principal repayments excluding the final balloon; nonempty, nonnegative and reconciled to the original loan plus balloon.

balloon

Final additional repayment in currency units, tested against the statutory regular-amortization capacity.

age_at_maturity

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

expected_life

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

defer_years

Explicit duration or age in years. This is not a date or a number of days; method-specific age/life limits are checked.

maturity_exception

Explicit assertion that an individual statutory exception has been granted. The returned required_approval_evidence must be assessed separately.

repayment_exception

Explicit assertion that an individual statutory exception has been granted. The returned required_approval_evidence must be assessed separately.

defer_exception

Explicit assertion that an individual statutory exception has been granted. The returned required_approval_evidence must be assessed separately.

extended_forbearance

Explicit facts about forbearance beyond the normal term and the corresponding trustee consent; missing consent is not inferred.

trustee_consent

Explicit facts about forbearance beyond the normal term and the corresponding trustee consent; missing consent is not inferred.

reconciliation_tolerance

Explicit numerical reconciliation tolerance. It is not applied to statutory limit or eligibility boundary decisions.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Annual repayments exclude the final balloon; exceptions and consent need separate dated evidence Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Annual ship/aircraft monitoring and deterioration/90-day arrears review triggers.

Description

Annual ship/aircraft monitoring and deterioration/90-day arrears review triggers.

Usage

transport_valuation_review(
  kind,
  as_of,
  last_monitoring,
  material_deterioration,
  material_arrears_days
)

Arguments

kind

Pfandbrief kind: HYP (mortgage), OEF (public sector), SCH (ship), or FLG (aircraft); transport-only methods accept SCH/FLG.

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

last_monitoring

Date of the last completed value monitoring; the annual deadline is obtained by adding 12 calendar months.

material_deterioration

Explicit Boolean appraisal of material deterioration in valuation fundamentals; true triggers a review.

material_arrears_days

Whole number of days of material payment arrears. The review trigger is at least 90 days, subject to the stated property exception.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Conserve explicit claim and qualified collateral capacities; no rank optimization.

Description

Conserve explicit claim and qualified collateral capacities; no rank optimization.

Usage

validate_allocations(claims, collateral, allocations)

Arguments

claims

Explicit claim/collateral capacities and allocation edges. IDs, kind and currency must reconcile; the exact columns are in DATA_CONTRACTS.md.

collateral

Explicit claim/collateral capacities and allocation edges. IDs, kind and currency must reconcile; the exact columns are in DATA_CONTRACTS.md.

allocations

Explicit claim/collateral capacities and allocation edges. IDs, kind and currency must reconcile; the exact columns are in DATA_CONTRACTS.md.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Legal rank and qualified capacities are separately established inputs Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Check proposed admissions and fields; never writes a legal cover register.

Description

Check proposed admissions and fields; never writes a legal cover register.

Usage

validate_register_entries(entries, used_numbers)

Arguments

entries

Proposed register-admission records or the complete inventory of previously used register numbers, including deleted entries. See the register data contract.

used_numbers

Proposed register-admission records or the complete inventory of previously used register numbers, including deleted entries. See the register data contract.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Input features must fully describe applicable rights and arrangements; legal contents are not authenticated used_numbers must include previously deleted entries; this is a proposed-admission check, not a historical correction model Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


Property annual-monitoring deadline and material-deterioration or arrears triggers.

Description

Property annual-monitoring deadline and material-deterioration or arrears triggers.

Usage

valuation_review(
  as_of,
  last_monitoring,
  material_deterioration,
  material_arrears_days,
  owner_occupied_residential = FALSE
)

Arguments

as_of

Calculation/validity date, canonical YYYY-MM-DD; R also accepts a Date scalar. Not a timestamp.

last_monitoring

Date of the last completed value monitoring; the annual deadline is obtained by adding 12 calendar months.

material_deterioration

Explicit Boolean appraisal of material deterioration in valuation fundamentals; true triggers a review.

material_arrears_days

Whole number of days of material payment arrears. The review trigger is at least 90 days, subject to the stated property exception.

owner_occupied_residential

Boolean owner-occupied residential exception to the property arrears trigger; it does not remove deterioration or annual monitoring triggers.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Further review obligations may apply; materiality is an evidenced input Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


§28(2)3 LTV: used lien plus prior/equal liens; highest used lien per property.

Description

§28(2)3 LTV: used lien plus prior/equal liens; highest used lien per property.

Usage

weighted_ltv(positions)

Arguments

positions

Function-specific position records. Integrated pools require the complete common universe; metrics require their documented fields. See DATA_CONTRACTS.md.

Details

Fields: position_id,property_id,allocated_amount,used_lien_with_prior_equal,lending_value. Only the highest used-lien LTV for each property contributes, with that claim's weight. Equal maxima require explicit consolidation. Do not substitute the full borrower-loan LTV. Uses the cover-used lien, not the full borrower loan; prior and equal third-party liens must already be included Same-property liens retain only the highest LTV and that claim's weight; equal maxima require consolidation Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool


ACT/365F, ACT/360, 30E/360 or ACT/ACT-ISDA; no implicit convention.

Description

ACT/365F, ACT/360, 30E/360 or ACT/ACT-ISDA; no implicit convention.

Usage

year_fraction(start, end, convention)

Arguments

start

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

end

Explicit calendar date in YYYY-MM-DD (or an R Date). The argument name identifies the contractual boundary; intervals must be chronological.

convention

Day-count or business-day convention, according to the function; accepted identifiers are stated in the function details.

Details

Conventions: ACT/365F, ACT/360, 30E/360 European and ACT/ACT-ISDA. ACT/ACT splits the interval at calendar-year boundaries. Dates are unadjusted accrual boundaries. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

Examples

year_fraction("2024-02-28", "2024-03-01", "ACT/ACT-ISDA")

Bracketed monotone yield solver with explicit bounds and no silent fallback.

Description

Bracketed monotone yield solver with explicit bounds and no silent fallback.

Usage

yield_to_maturity(
  price,
  amounts,
  times,
  frequency,
  lower,
  upper,
  tolerance = 1e-12,
  max_iterations = 256
)

Arguments

price

Monetary market/value/price input. A missing transport market value is None/NULL only in a documented alternative branch; bond price is a dirty amount price.

amounts

Explicit cashflow amounts in one currency, matching times. Signed cashflows are accepted by PV methods; bond yield analytics require nonnegative future payments.

times

Explicit year coordinates relative to the valuation date. Curve nodes must be strictly increasing; floating-coupon starts/ends/resets follow the documented in-advance convention.

frequency

Payments or yield compounding periods per year. Coupon schedules accept 1, 2, 4 or 12.

lower

Explicit numerical search bracket. The function rejects an unbracketed target and never silently expands the interval.

upper

Explicit numerical search bracket. The function rejects an unbracketed target and never silently expands the interval.

tolerance

Positive convergence tolerance under the function's documented price/value residual convention.

max_iterations

Positive whole-number iteration limit; failure to converge raises NO_CONVERGENCE.

Details

Input definitions below are part of the method contract. Consult the returned intermediate values and limitations; external legal qualifications and valuations are explicit prerequisites. Complete record schemas and the handbook are installed in the package doc directory.

Value

A pfandbrief_result containing value, method, sources, unit, status, details and limitations. The execution status CALCULATED is separate from a legal or numerical decision stored in value or details.

See Also

pfandbrief_result, analyze_pool

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.