summary.flag_resp | R Documentation |
Calculates the number of respondents flagged with a flagging strategy. Also calculates the agreement between flagging strategies.
## S3 method for class 'flag_resp'
summary(object, normalize = F, ...)
object |
An object of type |
normalize |
A logical value indicating, whether to normalize the agreement estimates between flagging strategies. See details for more information. |
... |
Other arguments for summary functions (currently not supported). |
The agreement is either the count of respondents which two flagging strategies
flag (normalize = T
) or the number of respondents that is flagged positive by
at least one flagging strategy.
In logical terms, the normalized agreement is sum(fs1 & fs2) / sum(fs1 | fs2)
.
An object of class "summary_flag_resp". The object works like a list with four elements.
n_flagged: a named vector of the number of cases a flagging strategy flagged as positive.
agreement: a data frame which counts the number of cases two flagging strategies flagged
as positive. If normalized
, the values are the percentage agreement in flagged respondents.
normalized: Indicator if agreement values were normalized.
n: number of rows in object
.
resp_distributions(nep) |>
flag_resp(ii_mean > 3,
ii_sd > 1,
ii_mean > 3 & ii_sd > 1) |>
summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.