sklars.omega | R Documentation |
Apply Sklar's Omega.
sklars.omega(
data,
level = c("nominal", "ordinal", "count", "percentage", "amount", "balance"),
confint = c("none", "bootstrap", "asymptotic"),
verbose = FALSE,
control = list()
)
data |
a matrix of scores. Each row corresponds to a unit, each column a coder. The columns must be named appropriately so that the correct copula correlation matrix can be constructed. See |
level |
the level of measurement, one of |
confint |
the method for computing confidence intervals, one of |
verbose |
logical; if TRUE, various messages may be printed to the console. |
control |
a list of control parameters.
|
This is the package's flagship function. It applies the Sklar's Omega methodology to nominal, ordinal, count, amount, balance, or percentage outcomes, and, if desired, produces confidence intervals. Parallel computing is supported, when applicable, and other measures (e.g., sparse matrix operations) are taken in the interest of computational efficiency.
If the level of measurement is nominal or ordinal, the scores (which must take values in 1, \dots , K
) are assumed to share a common categorical marginal distribution. A composite marginal likelihood (CML) approach is used for categorical scores. Only parametric bootstrap intervals are supported for categorical outcomes since sandwich estimation tends to lead to inflated standard errors.
If the scores are counts, control parameter dist
must be used to select a marginal distribution of "poisson"
or "negbinomial"
. For counts a distributional transform (DT) approximation of the likelihood is employed. Either bootstrap or sandwich intervals are available: confint = "bootstrap"
or confint = "asymptotic"
.
If the level of measurement is balance or amount or percentage, control parameter dist
must be used to select a marginal distribution from among "gaussian"
, "laplace"
, "t"
, and "empirical"
; or from among "gamma"
and "empirical"
; or from among "beta"
or "kumaraswamy"
, respectively. The method of maximum likelihood (ML) is used unless dist = "empirical"
, in which case conditional maximum likelihood is used, i.e., the copula parameters are estimated conditional on the sample distribution function of the scores. For the ML method, both bootstrap and asymptotic confidence intervals are available. When dist = "empirical"
, only bootstrap intervals are available.
When applicable, functions of appropriate sample quantities are used as starting values for marginal parameters, regardless of the level of measurement.
Function sklars.omega
returns an object of class "sklarsomega"
, which is a list comprising the following elements.
AIC |
the value of AIC for the fit, if |
BIC |
the value of BIC for the fit, if |
boot.sample |
when applicable, the bootstrap sample. |
call |
the matched call. |
coefficients |
a named vector of parameter estimates. |
confint |
the value of argument |
control |
the list of control parameters. |
convergence |
unless optimization failed, the value of |
cov.hat |
if |
data |
the matrix of scores, perhaps altered to remove rows (units) containing fewer than two scores. |
iter |
if optimization converged, the number of iterations required to optimize the objective function. |
level |
the level of measurement. |
message |
if applicable, the value of |
method |
the approach to inference, one of |
mpar |
the number of marginal parameters. |
npar |
the total number of parameters. |
optim.method |
the method used to optimize the objective function. The L-BFGS-B method is attempted first. If L-BFGS-B fails, a second attempt is made using the bounded Hooke-Jeeves algorithm. |
R |
the initial value of the copula correlation matrix. |
R.hat |
the estimated value of the copula correlation matrix. |
residuals |
the residuals. |
root.R.hat |
a square root of the estimated copula correlation matrix. This is used for simulation and to compute the residuals. |
value |
the minimum of the log objective function. |
verbose |
the value of argument |
y |
the scores as a vector, perhaps altered to remove rows (units) containing only one score. |
Hughes, J. (2018). Sklar's Omega: A Gaussian copula-based framework for assessing agreement. ArXiv e-prints, March.
Nissi, M. J., Mortazavi, S., Hughes, J., Morgan, P., and Ellermann, J. (2015). T2* relaxation time of acetabular and femoral cartilage with and without intra-articular Gd-DTPA2 in patients with femoroacetabular impingement. American Journal of Roentgenology, 204(6), W695.
# Fit a subset of the cartilage data, assuming a Laplace marginal distribution. Compute
# confidence intervals in the usual ML way (observed information matrix).
data(cartilage)
data.cart = as.matrix(cartilage)[1:100, ]
colnames(data.cart) = c("c.1.1", "c.2.1")
fit.lap = sklars.omega(data.cart, level = "balance", confint = "asymptotic",
control = list(dist = "laplace"))
summary(fit.lap)
# Now assume a noncentral t marginal distribution.
fit.t = sklars.omega(data.cart, level = "balance", confint = "asymptotic",
control = list(dist = "t"))
summary(fit.t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.