This function computes the estimation of a copula-based 2-level hierarchical model.
EstContinuous(
y,
model,
family,
rot = 0,
clu,
xc = NULL,
xm = NULL,
start,
LB,
UB,
nq = 31,
dfM = NULL,
dfC = NULL,
prediction = TRUE
)
Estimated parameters
Standard deviations of the estimated parameters
T statistics for the estimated parameters
P-values of the t statistics for the estimated parameters
Gradient of the log-likelihood
Log-likelihood
AIC coefficient
BIC coefficient
Covariance matrix of the estimations
Gradients by clusters
Cluster values
Matrix of covariates defining the copula parameters, including a constant
Matrix of covariates defining the margin parameters, including a constant
Estimated value of the latent variable by clusters (if prediction=TRUE)
Unique values of clusters
Copula family
Kendall's tau by observation
Estimated parameters of the copula by observation
Estimated parameters of the margins by observation
Conditional copula cdf
Margin functions (cdf and pdf)
Degrees of freedom for Student margin (default is NULL)
Degrees of freedom for the Student copula (default is NULL)
n x 1 vector of response variable (assumed continuous).
function for margins: "gaussian" (normal), "t" (Student with known df=dfM), laplace" , "exponential", "weibull".
copula family: "gaussian" , "t" , "clayton" , "frank" , "fgm", "gumbel".
rotation: 0 (default), 90, 180 (survival), or 270
variable of size n defining the clusters; can be a factor
covariates of size n for the estimation of the copula, in addition to the constant; default is NULL.
covariates of size n for the estimation of the mean of the margin, in addition to the constant; default is NULL.
starting point for the estimation; could be the ones associated with a Gaussian-copula model defined by lmer.
lower bound for the parameters.
upper bound for the parameters.
number of nodes and weighted for Gaussian quadrature of the product of conditional copulas; default is 25.
degrees of freedom for a Student margin; default is 0 for non-t distribution,
degrees of freedom for a Student margin; default is 5.
logical variable for prediction of latent variables V; default is TRUE.
Pavel Krupskii, Bouchra R. Nasri and Bruno N. Remillard
Krupskii, Nasri & Remillard (2023). On factor copula-based mixed regression models
data(normal) #simulated data with normal margins
start=c(0,0,0,1); LB=c(rep(-10,3),0.001);UB=c(rep(10,3),10)
y=normal$y; clu=normal$clu;xm=normal$xm
out=EstContinuous(y,model="gaussian",family="clayton",rot=90,clu=clu,xm=xm,start=start,LB=LB,UB=UB)
Run the code above in your browser using DataLab