This function applies a specified transformation to a numeric vector.
transform_data(
x,
n = NULL,
transfm = c("none", "tanh", "invlogit", "percentr", "percent", "inv_ft")
)A numeric vector with the applied transformation.
A numeric vector.
Used with "inv_ft". A numeric value representing the sample size for proportion.
A character string specifying the transformation to apply. Options include: - "none": No transformation (default) - "tanh": Hyperbolic tangent transformation - "invlogit": Inverse logit transformation - "percentr": Percentage relative change transformation - "percent": Percentage transformation - "inv_ft": Inverse Freeman-Tukey (double arcsine) transformation for proportions (use with caution)