First-order delta method variance of a function of estimated parameters
v(g, theta_hat, Sigma) = (Var_g, SE_g)
Takes a differentiable function g, its estimated inputs and their variances and covariances, and returns an approximate sampling variance and standard error for the output, by replacing g with its tangent at the estimates. Its result feeds the Wald interval of HE-FM-AN-001. The live ICER case is HE-FM-AN-002, with its Fieller alternative HE-FM-AN-003 and all three intervals in HE-CF-AN-001; net benefit, which is linear, is HE-FM-AN-004; the log risk ratio variance of one trial is HE-FM-PWMA-001, which equals the delta-method form Zepeda-Tello and colleagues derive (eq. 30, equal on a 144-point grid, derived); the variance of Hedges' g in HE-FM-HEDG-002 takes the same form with its correction factor J as a constant slope (derived). Those records fix the function, and this package holds the general rule with the slope or gradient as an input, plus one survival use. The second-order approximation to the mean of g is HE-FM-EV-002. Notation follows the Delta Method article.
Delta-method variance of a smooth function of one estimate
Var_g = d_g^2 * Var_X; SE_g = sqrt(Var_g)
Delta-method variance of a function of two correlated estimates
Var_g = g_X^2 * Var_X + g_Y^2 * Var_Y + 2 * g_X * g_Y * Cov_XY; SE_g = sqrt(Var_g)
Delta-method standard error of exponential mean survival from events and follow-up
lambda = N_e / T; Var_lambda = lambda^2 / N_e; mu = 1 / lambda; Var_mu = Var_lambda / lambda^4; SE_mu = sqrt(Var_mu); mu_L = mu - z * SE_mu; mu_U = mu + z * SE_mu; SE_logmu = SE_mu / mu; mu_LL = exp(log(mu) - z * SE_logmu); mu_LU = exp(log(mu) + z * SE_logmu)
