Load packages and set plot theme
library(tidyverse)
library(ggthemes)
library(here)
library(DT)
theme_set(theme_few(base_size = 16))
knitr::opts_chunk$set(fig.width = 6, fig.height = 4, cache = TRUE,
message = FALSE, warn = FALSE)
Set up the model
word_difficulties <- tibble(word = 1:10000,
difficulty = rnorm(n = 10000, mean = 4000,
sd = 1000))
datatable(word_difficulties, rownames = FALSE)
ggplot(word_difficulties, aes(x = difficulty)) +
geom_freqpoly() +
labs(x = "ease of acquisition", y = "# of words")
How many words are learned by each time step?