Skip to contents

Computes how much variable correlations need to be adjusted so that they have the desired correlation structure after transformation. Intended for internal use only.

Usage

compute_adjustment(
  r.x1.y,
  r.x2.y,
  r.x1x2.y,
  r.x1.x2,
  N.adjustment = 1e+06,
  tol = 0.005,
  iter = 10,
  k.x1,
  k.x2,
  k.y
)

Arguments

r.x1.y

Internal use only

r.x2.y

Internal use only

r.x1x2.y

Internal use only

r.x1.x2

Internal use only

N.adjustment

Internal use only

tol

Internal use only

iter

Internal use only

k.x1

Internal use only

k.x2

Internal use only

k.y

Internal use only

Value

Correlation adjustments.

Examples

# \donttest{
compute_adjustment(r.x1.y = .2,r.x2.y = .2,r.x1x2.y = .1,r.x1.x2 = .2,
k.x1 = 0,k.x2=0,k.y=2)
#> [1] 5.551115e-17 5.318161e-02 0.000000e+00 5.402155e-02 0.000000e+00
#> [6] 4.465865e-02
# }