standardize: A function to standardize data

View source: R/standardize.R

standardizeR Documentation

A function to standardize data

Description

This is a simple helper function to standardize data. We recommmend to standardize covariates as it makes parameter interpretation easier.

Usage

standardize(input, center = TRUE, type = "sd")

Arguments

input

A vector of data to standardize.

center

Subtract mean?

type

Divide by "max" or "sd"?

Value

A vector of standardize data.

Examples

## Not run: 
age_standardize = standardize(input=age)

## End(Not run)


ctross/STRAND documentation built on Dec. 15, 2024, 6:02 a.m.