# When aimed at linear regression via coefficient of determination...
hypothetical_s2_y = 2.0
lower_R2 = 0.05
upper_R2 = 0.85
find_invgamma_parms(response_variance = hypothetical_s2_y,
lower_R2 = lower_R2,
upper_R2 = upper_R2,
probability = 0.8)
# More arbitrary task...
find_invgamma_parms(0.3, # hypothetical_s2_y * (1.0 - upper_R2)
1.9, #hypothetical_s2_y * (1.0 - lower_R2)
probability = 0.8)
Run the code above in your browser using DataLab