| estcontord | R Documentation |
Limited to the bivariate case, based on an iid sample, the function estimates the parameters of the t-copula-based discrete distribution, according to either a two-step approach (suggested) where the only unknown parameters are the copula correlation and the degrees of Freedom, whereas the marginal probabilities are estimated via the ecdf, or a full-maximum-likelihood approach, where also the two marginal probabilities are estimated jointly with the correlation and degrees of freedom
estcontord(x, method="2-step")
x |
a matrix with two columns containing integer values; it is the bivariate iid sample |
method |
|
a list containing the estimates and for the "2-step" method their standard errors
Alessandro Barbiero, Pier Alda Ferrari
ordcont,contord, ordsample, corrcheck
## not run
#x1 <- c(rep(0,223),rep(1,269),rep(2,8))
#x2 <- c(rep(0,153), rep(1,70), rep(0,75),rep(1,187),
# rep(2,7),rep(0,2),rep(1,4),rep(2,2))
#cor(x1,x2)
#x<-cbind(x1,x2)
#res <- estcontord(x)
#res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.