aboutsummaryrefslogtreecommitdiff
path: root/R/sigma_twocomp.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/sigma_twocomp.R')
-rw-r--r--R/sigma_twocomp.R3
1 files changed, 3 insertions, 0 deletions
diff --git a/R/sigma_twocomp.R b/R/sigma_twocomp.R
new file mode 100644
index 00000000..b06816c1
--- /dev/null
+++ b/R/sigma_twocomp.R
@@ -0,0 +1,3 @@
+ sigma_twocomp <- function(y, sigma_low, rsd_high) {
+ sqrt(sigma_low^2 + y^2 * rsd_high^2)
+ }

Contact - Imprint