center: A function to mean center data

View source: R/center.R

centerR Documentation

A function to mean center data

Description

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

Usage

center(input)

Arguments

input

A vector of data to center.

Value

A vector of centered data.

Examples

## Not run: 
age_centered = center(input=age)

## End(Not run)


ctross/STRAND documentation built on Nov. 14, 2024, 11:50 p.m.