View source: R/error_propagation.R
error_propagation | R Documentation |
Propagate uncertainty using variance properties for addition, subtraction, and multiplication and the first order Taylor expansion (i.e., delta method) for the division of two random variables.
error_propagation(
fx = c("addition", "subtraction", "product", "division"),
type = c("both_random", "y_constant"),
x,
se.x,
y,
se.y = NULL,
alpha = 0.05
)
fx |
the function being applied; |
type |
set both |
x |
vector of random variables |
se.x |
standard error of |
y |
vector of random variables |
se.y |
standard error of |
alpha |
type I error rate. Default is set at 0.05 to produce 95% confidence intervals. |
Ryan N. Kinzer
x <- rnorm(10, 0, 1)
y <- rnorm(10, 5, 10)
se.x <- rep(2,10)
se.y <- rep(10,10)
error_propagation("division", "both_random", x, se.x, y, se.y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.