
Last chance! 50% off unlimited learning
Sale ends in
The function calculates the mean and variance of function of parameters
transform_prm(formula, mu, sigma, method = "delta", samples = 1000)
A list with entries `mean`, `variance` and `rse`
A formula describing the transformation.
Vector of mean values for the variables in formula.
Covariance matrix for the variables in formula.
A string indicating which method to use for the calculation.
Number of Monte-Carlo samples for method "mc"
# Mean, variance and rse for sqrt of variable with mean 1 and variance 0.01
transform_prm(~sqrt(a), mu = c(a = 1), sigma = c(a = 0.01))
Run the code above in your browser using DataLab