rescale: Rescaling procedure

Description Usage Arguments Value Examples

View source: R/Medbetareg.r

Description

Rescaling for a set values of a medical variable.

Usage

1
rescale(v, vscale)

Arguments

v

A numerical value or a numerical vector containing the values to be rescaled.

vscale

A vector of 4 cutpoints if the variable is continuous, or NA if the variable is binary.

Value

A numerical value or a numerical vector.

Examples

1
rescale(v=seq(0,40,length=21), vscale=c(0,15,25,40))

alessandromagrini/Medbetareg documentation built on March 7, 2021, 4:54 p.m.