PowerTOST (version 1.4-7)

CV2se+se2CV+CV2mse+mse2CV: Helper functions

Description

Calculates the standard error or the mean squared error from a given CV and vice versa for log-normal data.

Usage

CV2se(CV)
se2CV(se)
CV2mse(CV)
mse2CV(mse)

Arguments

CV

coefficient of variation

se

standard error

mse

mean squared error

Value

Returns se = sqrt(log(CV^2+1)) or CV = sqrt(exp(se*se)-1) or mse = log(CV^2+1) or CV = sqrt(exp(mse)-1)

Examples

Run this code
# NOT RUN {
# these functions are one liners:
CV2se <- function(CV) return(sqrt(log(1.0 + CV^2)))
se2CV <- function(se) return(sqrt(exp(se*se)-1))

CV2se(0.3)
# should give: [1] 0.2935604 

se2CV(0.2935604)
#[1] 0.3 
# }

Run the code above in your browser using DataCamp Workspace