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] -3.053113e-16 5.577190e-02 0.000000e+00 5.580208e-02 0.000000e+00
#> [6] 4.391339e-02
# }