one.sample: Return a sample with the specified pattern of means and...

Description Usage Arguments Value Author(s) Examples

View source: R/sims.R

Description

Simulates samples based on normal distribution and test the contrast for each sample, providing power information

Usage

1
one.sample(cont, means, sd = 1, n = 10)

Arguments

cont

contrast codes as a numeric vector

means

pattern of means as numeric vector of the same length of cont

sd

pooled standard deviation

n

per cell n

Value

a data.frame with all the simulated results of class simulations

Author(s)

Marcello Gallucci, mcfanda@gmail.com

Examples

1
2
3
cont<-c(-3,-1,1,3)
means<-c(10,12,10,12)
one.sample(cont,means,sd=1,n=10)

mcfanda/cpower documentation built on May 28, 2019, 1 p.m.