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.
transform_y(y)
Numeric vector in [0, 1]^N
Numeric vector in (0, 1)^N
transform_y(c(0, 0.5, 1))
#> [1] 0.1666667 0.5000000 0.8333333