copula.prob
can be used to calculate the joint or conditional copula probabilities from a fitted simultaneous model with intervals obtained
via posterior simulation.
copula.prob(x, y1, y2, y3 = NULL, newdata, joint = TRUE, cond = 0,
type = "surv", intervals = FALSE, n.sim = 100, prob.lev = 0.05,
min.pr = 1e-323, max.pr = 1, cumul = "no")
It returns several values including: estimated probabilities (p12
), with lower and upper interval limits (CIpr
)
if intervals = TRUE
, and p1
, p2
and p3
(the marginal probabilities).
A fitted gjrm
object as
produced by the respective fitting function.
Value of response for first margin.
Value of response for second margin.
Value of response for third margin if a trivariate model is employed.
A data frame or list containing the values of the model covariates at which predictions are required. If not provided then predictions corresponding to the original data are returned. When newdata is provided, it should contain all the variables needed for prediction.
If TRUE
then the calculation is done using the fitted joint model. If FALSE
then
the calculation is done from univariate fits.
There are three possible values: 0 (joint probabilities are delivered), 1 (conditional probabilities are delivered and conditioning is with the respect to the first margin), 2 (as before but conditioning is with the respect to the second margin).
This argument is only valid for survival copula models. It can take values: "surv", "hazard", "cumhaz".
If TRUE
then intervals for the probabilities are also produced.
Number of simulated coefficient vectors from the posterior distribution of the estimated model parameters. This is used for interval calculations.
Overall probability of the left and right tails of the probabilities' distributions used for interval calculations.
Allowed minimum and maximum for estimated probabities.
Only used for discrete and continuous margins' case.
Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk
This function calculates joint or conditional copula probabilities from a fitted simultaneous model or a model assuming independence, with intervals obtained via posterior simulation.
GJRM-package
, gjrm