# NOT RUN {
# d for a 1-unit vs. a 2-unit increase in X
r_to_d( r = 0.5,
sx = 2,
delta = 1,
N = 100 )
r_to_d( r = 0.5,
sx = 2,
delta = 2,
N = 100 )
# d when sx is estimated in the same vs. a smaller sample
# point estimate will be the same, but inference will be a little
# less precise in second case
r_to_d( r = -0.3,
sx = 2,
delta = 2,
N = 300,
Ns = 300 )
r_to_d( r = -0.3,
sx = 2,
delta = 2,
N = 300,
Ns = 30 )
# }
Run the code above in your browser using DataLab