Description Usage Arguments Details Value Author(s) See Also Examples
Simulates bivariate normal means; for use with asd.sim
and gasd.sim
in ASD.
1 | simeans.binormal(n = n, means = means, vars = vars, corr = corr)
|
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 |
Uses function rmvnorm
from package mvtnorm
to generate means from correlated normal variates.
samp1 |
Mean of sample 1 |
samp2 |
Mean of sample 2 |
Nick Parsons (nick.parsons@warwick.ac.uk)
treatsel.sim
, dunnett.test
, hyp.test
, select.rule
, combn.test
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.