transform_y: Transform vector from [0, 1] to (0, 1).

View source: R/utils.R

transform_yR Documentation

Transform vector from [0, 1] to (0, 1).

Description

Make (response) vector conform to Beta assumptions as described in section 2 of the betareg vignette https://cran.r-project.org/web/packages/betareg/vignettes/betareg.pdf.

Usage

transform_y(y)

Arguments

y

Numeric vector in [0, 1]^N

Value

Numeric vector in (0, 1)^N

Examples

transform_y(c(0, 0.5, 1))

cbg-ethz/pareg documentation built on July 20, 2023, 7:30 p.m.