gen.data: Function for data generation

Description Usage Arguments Value Author(s)

View source: R/tcomp.R

Description

generates data from a one-way random effects ANOVA model.

Usage

1
gen.data (ng, ns, moy, varg, vars)

Arguments

ng

the number of groups.

ns

the number of subject in each group. All groups have the same number of subjects.

moy

the overall mean.

varg

the variance of group means.

vars

the variance of subjects within groups. #'

Value

Returns a data frame with ng * ns rows, and two columns called "group" and "value", giving the group id for each subject (1 to ng), and the value for that subject.

Author(s)

Sewanou Honfo <honfosewanou@gmail.com> and Romain Glèlè Kakaï <glele.romain@gmail.com> / LABEF_07_2019


Sewanou/ProjectSC2019 documentation built on Oct. 30, 2019, 11:52 p.m.