copula.prob {GJRM} | R Documentation |
Copula probabilities (joint and conditional) from a fitted simultaneous model
Description
copula.prob
can be used to calculate the joint or conditional copula probabilities from a fitted simultaneous model with intervals obtained
via posterior simulation.
Usage
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")
Arguments
x |
A fitted |
y1 |
Value of response for first margin. |
y2 |
Value of response for second margin. |
y3 |
Value of response for third margin if a trivariate model is employed. |
newdata |
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. |
joint |
If |
cond |
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). |
type |
This argument is only valid for survival copula models. It can take values: "surv", "hazard", "cumhaz". |
intervals |
If |
n.sim |
Number of simulated coefficient vectors from the posterior distribution of the estimated model parameters. This is used for interval calculations. |
prob.lev |
Overall probability of the left and right tails of the probabilities' distributions used for interval calculations. |
min.pr , max.pr |
Allowed minimum and maximum for estimated probabities. |
cumul |
Only used for discrete and continuous margins' case. |
Details
This function calculates joint or conditional copula probabilities from a fitted simultaneous model or a model assuming independence, with intervals obtained via posterior simulation.
Value
res |
It returns several values including: estimated probabilities ( |
Author(s)
Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk