simeans.binormal: Simulate Bivariate Normal Means

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Simulates bivariate normal means; for use with asd.sim and gasd.sim in ASD.

Usage

1
simeans.binormal(n = n, means = means, vars = vars, corr = corr)

Arguments

n

Number of records used to calculate means

means

Vector of expected means for two samples

vars

Vector of expected variances for two samples

corr

Correlation between two samples

Details

Uses function rmvnorm from package mvtnorm to generate means from correlated normal variates.

Value

samp1

Mean of sample 1

samp2

Mean of sample 2

Author(s)

Nick Parsons (nick.parsons@warwick.ac.uk)

See Also

treatsel.sim, dunnett.test, hyp.test, select.rule, combn.test

Examples

1
2
3
4
5
6
# need to load mvtnorm
library(mvtnorm)

# generate data
set.seed(1234)
simeans.binormal(n=10,means=c(2,3),vars=c(1,5),corr=0.5)

asd documentation built on May 2, 2019, 3:35 p.m.