Skip to contents

Demographic representation and stereotypical association (Eq 6.15-6.16)

Usage

morie_kamath_ch6_demographic_representation(G_i, A_i, Yhat)

morie_kamath_ch6_stereotypical_assoc(w, A_i, Yhat)

Arguments

G_i

Group label.

A_i

Attribute words.

Yhat

Outputs.

w

Gating word.

Value

List with estimate, per_word, share_of_tokens.

Details

One counter serves both Python modules exactly as km092 imports km091's _count/_tokens: km091 -> morie_kamath_ch6_demographic_representation (counts in every output), km092 -> morie_kamath_ch6_stereotypical_assoc (counts only in outputs that mention w).

Examples

morie_kamath_ch6_demographic_representation(G_i = c(1, 2, 3, 4, 5, 6, 7, 8),
  A_i = c(1, 2, 3, 4, 5, 6, 7, 8), Yhat = c(1, 2, 3, 4, 5, 6, 7, 8))
#> $estimate
#> [1] 8
#> 
#> $group
#> [1] 1 2 3 4 5 6 7 8
#> 
#> $per_word
#> 1 2 3 4 5 6 7 8 
#> 1 1 1 1 1 1 1 1 
#> 
#> $share_of_tokens
#> [1] 1
#> 
#> $n_outputs
#> [1] 8
#> 
#> $n
#> [1] 8
#> 
#> $method
#> [1] "Demographic Representation count (Kamath Eq 6.15)"
#>