Skip to contents

Equations 2.7 and 2.8 of Weisburd et al. (2022). Mirrors ca2e7 / ca2e8.

Usage

morie_ols_two_iv(r_y1, r_y2, r_12, s_y, s_1, s_2)

Arguments

r_y1, r_y2, r_12

Pairwise correlations.

s_y, s_1, s_2

Standard deviations of y, x1, x2.

Value

List with b1 and b2.

Examples

morie_ols_two_iv(r_y1 = 0.5, r_y2 = 0.35, r_12 = 0.3,
                 s_y = 10, s_1 = 2, s_2 = 4)
#> $b1
#> [1] 2.17033
#> 
#> $b2
#> [1] 0.5494505
#>