aboutsummaryrefslogtreecommitdiff
path: root/R/sigma_rl.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2018-01-19 16:01:47 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2018-01-30 10:43:58 +0100
commita37ba8f8898e4629dfc9d2558fc19a180551de2d (patch)
treedcae8090ab31e2e21ebdcb8f8fe11ada521523cc /R/sigma_rl.R
parentf18213520f20aba947093e53113c44b689e8b98d (diff)
Reweighting with two-component error model
Static documentation except articles rebuilt by pkgdown
Diffstat (limited to 'R/sigma_rl.R')
-rw-r--r--R/sigma_rl.R3
1 files changed, 3 insertions, 0 deletions
diff --git a/R/sigma_rl.R b/R/sigma_rl.R
new file mode 100644
index 00000000..2b921d29
--- /dev/null
+++ b/R/sigma_rl.R
@@ -0,0 +1,3 @@
+ sigma_rl <- function(y, sigma_low, rsd_high) {
+ sqrt(sigma_low^2 + y^2 * rsd_high^2)
+ }

Contact - Imprint