Description Usage Arguments Value Examples
View source: R/get_agreeclust_binary.R
Agreement-based clustering of binary ratings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
dta |
A binary matrix or data frame of dimensions S x R (S=number of stimuli, R=number of raters). |
model |
A formula for the model. Either 'rating ~ rater + stimulus' (default), 'rating ~ rater', or 'rating ~ 1'. |
max_clust |
An integer specifying the maximum number of clusters of raters. By default, this number is fixed to 10. |
approx_null |
A boolean indicating if the null LRT distribution should be approximated using Satterthwaite's approximation. By default, the null LRT distribution is approximated. |
paral_null |
A boolean indicating if the computation of the null LRT distribution should be parallelized. By default, the computation of the null LRT distribution is parallelized on nb.cores-1 cores. During the process, a text file 'TestDendrogram_processing.txt' is created. |
consol |
A boolean indicating if a k-means consolidation of the partition of raters should be performed. By default, the partition is consolidated. |
id_info_rater |
A vector of integer elements composed of the identification of the lines containing the supplementary information (i.e. covariates) about the raters. This argument is optional and, by default, it is fixed to NULL, meaning that dta does not contain supplementary information about the raters. |
type_info_rater |
A vector of character elements composed of the type of the covariates about the raters. This vector must be of the same length that id.info.rater. A continuous covariate is associated to 'cont' and a categorical covariate is associated to 'cat'. This argument is optional and, by default, it is fixed to NULL, meaning that dta does not contain supplementary information about the raters. |
id_info_stim |
A vector of integer elements composed of the identification of the columns containing the supplementary information (i.e. covariates) about the stimuli. This argument is optional and, by default, it is fixed to NULL, meaning that dta does not contain supplementary information about the stimuli. |
type_info_stim |
A vector of character elements composed of the type of the covariates about the stimuli. This vector must be of the same length that id.info.stim. A continuous covariate is associated to 'cont' and a categorical covariate is associated to 'cat'. This argument is optional and, by default, it is fixed to NULL, meaning that dta does not contain supplementary information about the stimuli. |
graph |
A boolean specifying if the graphical outputs should be plotted or not. By default, they are plotted. |
ext_dev_Rstudio |
A boolean specifying if the graphical outputs should be plotted in the Rstudio plot pane or not. |
list
profiles_residualsA matrix of dimensions S x R (S=number of stimuli, R=number of raters) containing the residuals profiles of the raters obtained through the modelling of the set of binary ratings.
mat_disagA matrix of dimensions R x R (R=number of raters) corresponding to the dissimilarity matrix between the raters.
pval_dendroA vector containing the probabilities associated to the statistical test realized at each level of the dendrogram.
nb_clust_foundAn integer corresponding to the number of clusters found among the panel.
partitionA vector representing the partition of the raters (consolidated partition if consol = TRUE).
res_plot_segmentAll the graphical results of the segmentation.
res_pcaAll the results of the PCA.
charact_clustThe results of the description of the clusters by information describing the raters and/or the stimuli.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data(binary_data_for_example)
res_pedag <- get_agreeclust_bin(dta = binary_data_for_example,
id_info_rater = 9 : nrow(binary_data_for_example),
type_info_rater = c(rep("cat", 2), "cont"),
id_info_stim = 21 : ncol(binary_data_for_example),
type_info_stim = c(rep("cont", 4), "cat"),
paral_null = FALSE
)
res_pedag
## Not run:
data(goodgesture)
res_goodgesture <- get_agreeclust_bin(dta = goodgesture,
model = "rating ~ rater + stimulus",
id_info_rater = 40 : nrow(goodgesture),
type_info_rater = rep("cat", 4),
id_info_stim = 73 : ncol(goodgesture),
type_info_stim = c(rep("cat", 3), rep("cont", 11)),
paral_null = FALSE
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.