transform_prm: Mean and variance of tranformed parameters

View source: R/transform_parameters.R

transform_prmR Documentation

Mean and variance of tranformed parameters

Description

The function calculates the mean and variance of function of parameters

Usage

transform_prm(formula, mu, sigma, method = "delta", samples = 1000)

Arguments

formula

A formula describing the transformation.

mu

Vector of mean values for the variables in formula.

sigma

Covariance matrix for the variables in formula.

method

A string indicating which method to use for the calculation.

samples

Number of Monte-Carlo samples for method "mc"

Value

A list with entries 'mean', 'variance' and 'rse'

Examples

# 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))


guiastrennec/xpose documentation built on Feb. 16, 2024, 8:14 p.m.