Description Usage Arguments Details Value Note Examples
PC fits the specified bivariate copula distribution for a 2 dimensional contingency table, and returns the fitted correlation (r) value.
1 |
P |
a 2 dimensional contingency table. |
cop |
A string specifying the copula family to fit. Should be one of "gauss", "clayton", "frank", "genest" or "nelsen2". |
loss |
A string specifying which loss function is to be used for fitting the distribution. Currently "MH" (likelihood) and "SS" (sum of squares) are implemented. |
domain |
optional: vector of lenght 2, specifying the domain for theta over which to optimize. |
subdomains |
optional: an integer specifying the number of intervals to split the domain in for the optimization. |
PC uses numerical optimization to find an optimal value for the association parameter theta for the given distribution. The loss is calculated by comparing the observed contingency table with the fitted one as derived from the fitted distribution.
The value for the correlation (r). Has attributes with additional information. See examples.
If you suspect numerical optimization to find local minima, try a smaller domain for theta, or specify a higher number of subdomains to perform numerical optimization over.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.