Description Usage Format References Examples
Semantic transparency (dichotomous) and frequency for 985 words with the Dutch prefix ver-.
1 |
A data frame with 985 observations on the following 2 variables.
Frequency
a numeric vector for the words' frequency.
SemanticClass
a factor with levels opaque
and
transparent
coding semantic transparency.
Baayen, R. H. and Lieber, R. (1997) Word Frequency Distributions and Lexical Semantics, Computers and the Humanities, 30, 281-291.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## Not run:
data(ver)
ver$Frequency = log(ver$Frequency)
plot(density(ver$Frequency))
# plot separate densities for opaque and transparent words
ver.transp = ver[ver$SemanticClass == "transparent",]$Frequency
ver.opaque = ver[ver$SemanticClass == "opaque", ]$Frequency
ver.transp.d = density(ver.transp)
ver.opaque.d = density(ver.opaque)
xlimit = range(ver.transp.d$x, ver.opaque.d$x)
ylimit = range(ver.transp.d$y, ver.opaque.d$y)
plot(ver.transp.d, lty = 1, col = "black",
xlab = "frequency", ylab = "density",
xlim = xlimit, ylim = ylimit, main = "")
lines(ver.opaque.d, col = "darkgrey")
legend(6,0.25, lty=rep(1,2), col=c("black", "darkgrey"),
legend=c("transparent", "opaque"))
# test whether the difference is significant
ks.test(jitter(ver.transp), jitter(ver.opaque))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.