mkcord4: Make standard normal correlated data from 4 groups/conditions

Description Usage Arguments Value

View source: R/utils.R

Description

Make standard normal correlated data from 4 groups/conditions

Usage

1
2
3
4
5
6
7
8
9
mkcord4(
  rho.x1y1 = 0,
  rho.x2y2 = 0.5,
  rho.x1x2 = 0.2,
  rho.y1y2 = 0.2,
  rho.x1y2 = 0,
  rho.x2y1 = 0,
  n = 50
)

Arguments

rho.x1y1

the population correlation between x1 and y1 (default 0).

rho.x2y2

the population correlation between x2 and y2 (default 0.5).

rho.x1x2, rho.y1y2, rho.x1y2, rho.x2y1

the other population correlations.

n

the sample size.

Value

A list with elements x1, y1, x2 and y2.


GRousselet/bootcorci documentation built on March 6, 2021, 7:13 a.m.