predictDiscrete {CopulaGAMM} | R Documentation |
Compute the conditional expectation of a copula-based 2-level hierarchical model for disctrete response.
predictDiscrete(object, newdata, m = 100)
object |
Object of class “EstDiscrete“ generated by EstDiscrete. |
newdata |
List of variables for be predicted (“clu“ for clusters, “xc“ for the copula covariates, and “xm“ for the margins covariates). The covariates can be NULL. |
m |
Number of points for the numerical integration (default is 100). |
mest |
Conditional expectations (conditional probabilities for the multinomial case |
Pavel Krupskii and Bruno N. Remillard, January 20, 2023
Krupskii, Nasri & Remillard (2023). On factor copula-based mixed regression models
data(out.poisson)
pred= predictDiscrete(out.poisson,list(clu=c(1:50),xm=rep(0.4,50)),)