get_agreeclust_bin: Agreement-based clustering of binary ratings

Description Usage Arguments Value Examples

View source: R/get_agreeclust_binary.R

Description

Agreement-based clustering of binary ratings

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
get_agreeclust_bin(
  dta,
  model = "rating ~ rater + stimulus",
  max_clust = 10,
  approx_null = TRUE,
  paral_null = TRUE,
  consol = TRUE,
  id_info_rater = NULL,
  type_info_rater = NULL,
  id_info_stim = NULL,
  type_info_stim = NULL,
  graph = TRUE,
  ext_dev_Rstudio = FALSE
)

Arguments

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.

Value

list

Examples

 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)

MargotBr/AgreeClust documentation built on Jan. 29, 2021, 1:12 a.m.