Description Usage Arguments Value Examples
Computes the WEFAT statistic from the paper. No standard error is currently computed.
1 | wefat(items, vectors, x_name, a_name, b_name)
|
items |
information about the items, typically from
|
vectors |
a matrix of word vectors for all the study items, typically
from |
x_name |
twe name of the target word condition, e.g. "AndrogeynousNames" in WEFAT 2 |
a_name |
the name of the first attribute, e.g. "MaleAttributes" in WEFAT 2 |
b_name |
the name of the second attribute, e.g. "FemaleAttributes" in WEFAT 2 |
a data frame with columns Word
and S_wab
, the value of the
statistic.
1 2 3 4 5 6 7 | its <- cbn_get_items("WEFAT", 2)
vecs <- cbn_get_item_vectors("WEFAT", 2)
wefs <- wefat(its, vecs, x_name = "AndrogynousNames",
a_name = "MaleAttributes", b_name = "FemaleAttributes")
props <- cbn_gender_name_stats[, c('name', 'proportion_male')]
wefs_props <- merge(wefs, props, by.x = "Word", by.y = "name")
cor.test(wefs_props$S_wab, wefs_props$proportion_male)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.