Learn R Programming

iarm (version 0.1.2)

partgam: Conditional and Partial Gamma Coefficients

Description

Calculates conditional and partial Gamma coefficients for x and y given z with confidence intervals.

Usage

partgam(x, y, z, conf.level = 0.95)

Arguments

x, y, z

Three numeric vectors or factors.

conf.level

Confidence level for the returned confidence interval.

Value

matrix with estimates, standard errors and confidence interval limits.

References

Davis, J. A. A Partial coefficient for Goodman and Kruskal's Gamma. Journal of the American Statistical Association, 62 (317), 1967, pp. 189-193.

Examples

Run this code
# NOT RUN {
# Partial Gamma coefficient between an item and an exogenuous variable, given the total score
score <- apply(amts[, 4:13], 1, sum, na.rm = TRUE)
fz <- cut(score,unique(quantile(score,0:10/10)))
partgam(amts$firstww,amts$sex,fz)
# }

Run the code above in your browser using DataLab