Learn R Programming

InteractionPoweR (version 0.2.1)

compute_adjustment: compute_adjustment

Description

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
)

Value

Correlation adjustments.

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

Examples

Run this code
# \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)
# }

Run the code above in your browser using DataLab