I am doing error analysis of predictive models and I need to calculate global error, this is, I need to calculate the resultant error from propagation of indirect measurements errors. My data "df" looks like something similar to this
Where 'x' and 'y' are the measured variables, and 'x_se' and 'y_se' the standard errors of these measurements
I have used function 'propagate' from package 'qpcR' for the first row
EXPR <- expression((0.1*x)*(y/(y+0.1)))
x <- c(1.43, 2)
y <- c(0.64, 0.09)
DF <- cbind(x, y)
res <- propagate(expr = EXPR, data = DF, type = "stat",do.sim = TRUE, verbose = TRUE)
res$summary
or this one from the package 'metRology'
expr <- expression((0.1*a)*(b/(b+0.1)))
x <- list(a=1.43, b=0.64)
u <- list(2,0.1)
u.expr<-uncert(expr, x, u, method="MC",B=200)
u.expr
both of them work, but I do not know how to apply any of these functions to the entire df. Thanks for your help