reasonable_transform: Reasonable parameter transformations

View source: R/distribution_functions.R

reasonable_transformR Documentation

Reasonable parameter transformations

Description

Produce reasonable linear transformations for any provided parameters from a bank of tested transformation functions. If no tested transforms exist, returns the identity function.

Usage

reasonable_transform(parameters = c("pi", "scale"))

Arguments

parameters

character, default c("pi", "scale"). Parameters for which to fetch reasonable transformation functions.

Value

A nested, named list containing forward and back transforms for the named parameters.

Examples

# for pi
reasonable_transform("pi")

# for pi and scale
reasonable_transform(c("pi", "scale"))

# when there aren't any banked transformations, returns the identity function
reasonable_transform(c("pi", "not_a_parameter", "scale"))

hemstrow/GeneArchEst documentation built on June 10, 2025, 5:06 a.m.