summaryrefslogtreecommitdiffstats
path: root/man/lossdist.joint.Rd
blob: 1cf7a71fcbb34f925d797bd53898b9f8bb1a1e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/distrib.R
\name{lossdist.joint}
\alias{lossdist.joint}
\title{Joint loss-recovery distributionrecursive algorithm with first order correction to compute the joint
probability distribution of the loss and recovery.}
\usage{
lossdist.joint(p, w, S, N, defaultflag = FALSE)
}
\arguments{
\item{p}{Numeric, vector of default probabilities}

\item{w}{Numeric, vector of weights}

\item{S}{Numeric, vector of severities}

\item{N}{Integer, number of ticks in the grid}

\item{defaultflab}{Logical, whether to return the loss or default distribution}
}
\value{
q Matrix of joint loss, recovery probability distribution
colSums(q) is the recovery distribution marginal
rowSums(q) is the loss distribution marginal
}
\description{
For high severities, M can become bigger than N, and there is
some probability mass escaping.
}