Skip to content

LGDtoolkit

Collection of Tools for LGD Rating Model Development

v0.2.0 · May 30, 2023 · GPL (>= 3)

Description

The goal of this package is to cover the most common steps in Loss Given Default (LGD) rating model development. The main procedures available are those that refer to bivariate and multivariate analysis. In particular two statistical methods for multivariate analysis are currently implemented – OLS regression and fractional logistic regression. Both methods are also available within different blockwise model designs and both have customized stepwise algorithms. Descriptions of these customized designs are available in Siddiqi (2016) <doi:10.1002/9781119282396.ch10> and Anderson, R.A. (2021) <doi:10.1093/oso/9780192844194.001.0001>. Although they are explained for PD model, the same designs are applicable for LGD model with different underlying regression methods (OLS and fractional logistic regression). To cover other important steps for LGD model development, it is recommended to use 'LGDtoolkit' package along with 'PDtoolkit', and 'monobin' (or 'monobinShiny') packages. Additionally, 'LGDtoolkit' provides set of procedures handy for initial and periodical model validation.

Downloads

CRAN

247

Last 30 days

20089th

591

Last 90 days

2.3K

Last year

Trend: +64.7% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

24

Last 90 days

96

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

3

Last 7 days

14

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘monobin’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

2,941

Files

35

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,077 (70.6%)Docs 864 (29.4%)

API

Exported functions

13

Internal functions

18

Recent export changes

v0.2.0+2 heterogeneity, homogeneity
v0.0.9+11 embedded.blocks, ensemble.blocks, interaction.transformer +8 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

24

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2023-01-30

Latest release

2023-05-30

Avg cadence

60 days

Cold removal rate

Dep drift

0

LOC over versions

v0.0.9: 2,481 LOCv0.1.0: 2,487 LOCv0.2.0: 2,941 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies dplyr monobin LGDtoolkit

Version History

4 tracked
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.0 diff May 29, 2023
updated 0.1.0 ← 0.0.9 diff Mar 7, 2023
new 0.0.9 Jan 29, 2023