```
# NOT RUN {
## Correction for measurement error only
correct_d(correction = "meas", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "meas", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
## Correction for direct range restriction in the continuous variable
correct_d(correction = "uvdrr_y", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "uvdrr_y", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
## Correction for direct range restriction in the grouping variable
correct_d(correction = "uvdrr_g", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "uvdrr_g", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
## Correction for indirect range restriction in the continuous variable
correct_d(correction = "uvdrr_y", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "uvdrr_y", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
## Correction for indirect range restriction in the grouping variable
correct_d(correction = "uvirr_g", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "uvirr_g", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
## Correction for indirect range restriction in the continuous variable
correct_d(correction = "uvdrr_y", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "uvdrr_y", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
## Correction for direct range restriction in both variables
correct_d(correction = "bvdrr", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "bvdrr", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
## Correction for indirect range restriction in both variables
correct_d(correction = "bvirr", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = .7, pa = .5)
correct_d(correction = "bvirr", d = .5, ryy = .8, uy = .7,
rGg = .9, pi = NULL, pa = .5, n1 = 100, n2 = 200)
# }
```

Run the code above in your browser using DataLab