sc01: Scaler

Description Usage Arguments Details Value Author(s) Examples

View source: R/sc01.R

Description

It scales the vector of a quantitative response variable, such as the one for binary logistic regression model, as 0s and 1s based on a cutoff.

Usage

1
sc01(x, scm)

Arguments

x

a numeric, integer or double, vector object

scm

the cutoff value obtainable by a case(subject) on a single variable

Details

The functioon is very handy for scaling the response variable in a binary logistic regression model. The argument x can be calculated using the function vsc and scm is based on researcher's judgment.

Value

a data frame object of a binary-coded variable

Author(s)

Abubakar Akanbi

Examples

1
2
3
vct <- c(15,24,20,25,14)
## Not run: scm = 15
dtf <- sc01(vct, 15)

bscaling documentation built on Dec. 8, 2020, 5:09 p.m.