simulated.language.course | R Documentation |
This function generates simulated results of a study measuring the effectiveness of a new corpus-driven foreign language teaching course.
The generated data set is usually named LanguageCourse
(see code examples below)
and is used for various exercises and illustrations in the SIGIL course.
simulated.language.course(n=c(15,20,10,10,14,18,15), mean=c(60,50,30,70,55,50,60),
effect=c(5,8,12,-4,2,6,-5), sd.subject=15, sd.effect=5,
seed.rng=42)
n |
number of participants in each class |
mean |
average score of each class before the course |
effect |
improvement of each class during the course |
sd.subject |
inter-subject variability, may be different in each class |
sd.effect |
inter-subject variability of effect size, may also be different in each class |
seed.rng |
seed for the random number generator, so data sets with the same parameters are reproducible |
TODO
A data frame with sum(n)
rows corresponding to individual subjects participating in the study and the following columns
id
:unique ID code of subject
class
:name of the teaching class
pre
:score in standardized language test before the course (pre-test)
post
:score in standardized language test after the course (post-test)
Stephanie Evert (https://purl.org/stephanie.evert)
LanguageCourse <- simulated.language.course()
head(LanguageCourse, 20)
summary(LanguageCourse)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.