simulated_language_course: Simulated study on effectiveness of language course (corpora)

simulated.language.courseR Documentation

Simulated study on effectiveness of language course (corpora)

Description

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.

Usage


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)

Arguments

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

Details

TODO

Value

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)

Author(s)

Stephanie Evert (https://purl.org/stephanie.evert)

Examples


LanguageCourse <- simulated.language.course()
head(LanguageCourse, 20)
summary(LanguageCourse)


corpora documentation built on Aug. 24, 2023, 3:03 p.m.