Measures the association between a continuous variable and some continuous and/or categorical variables
condesc(y, x, weights = NULL,
na.rm.cat = FALSE, na.value.cat = "NA", na.rm.cont = FALSE,
limit = NULL, correlation = "kendall", robust = TRUE,
nperm = NULL, distrib = "asympt", digits = 2)A list of the following items :
associations between y and the variables in x
a data frame with categorical variables from x and associations measured by point biserial correlation.
the continuous variable to describe
a data frame with continuous and/or categorical variables
numeric vector of weights. If NULL (default), uniform weights (i.e. all equal to 1) are used.
logical, indicating whether NA values in the categorical variables should be silently removed before the computation proceeds. If FALSE (default), an additional level is added to the categorical variables (see na.value.cat argument).
character. Name of the level for NA category. Default is "NA". Only used if na.rm.cat = FALSE.
logical, indicating whether NA values in the continuous variables should be silently removed before the computation proceeds. Default is FALSE.
for the relationship between y and a category of a categorical variable, only associations (point-biserial correlations) higher or equal to limit will be displayed. If NULL (default), they are all displayed.
character. The type of correlation measure to use between two continuous variables : "pearson", "spearman" or "kendall" (default).
logical. If TRUE (default), meadian and mad are used instead of mean and standard deviation.
numeric. Number of permutations for the permutation test of independence. If NULL (default), no permutation test is performed.
the null distribution of permutation test of independence can be approximated by its asymptotic distribution ("asympt", default) or via Monte Carlo resampling ("approx").
numeric. Number of digits for mean, median, standard deviation and mad. Default is 2.
Nicolas Robette
Rakotomalala R., 'Comprendre la taille d'effet (effect size)', [http://eric.univ-lyon2.fr/~ricco/cours/slides/effect_size.pdf]
condes, catdesc, assoc.yx, darma
data(Movies)
condesc(Movies$BoxOffice, Movies[,c("Budget","Genre","Country")])
Run the code above in your browser using DataLab