pcenter: Centering on person-means

Description Usage Arguments Value Examples

View source: R/pcenter.R

Description

This function allows you to center on person-means (also called "centering within clusters")

Usage

1
pcenter(ID, var)

Arguments

ID

name of ID variable

var

name of variable to be centered

Value

A column in your dataframe (with person-centered data)

Examples

1
## Not run: data$centeredVAR<-pcenter(data$ID,data$var)

Example output

sh: 1: cannot create /dev/null: Permission denied
sh: 1: wc: Permission denied
Could not detect number of cores, defaulting to 1.
Warning message:
In checkMatrixPackageVersion() : Package version inconsistency detected.
TMB was built with Matrix version 1.2.15
Current Matrix version is 1.2.16
Please re-install 'TMB' from source using install.packages('TMB', type = 'source') or ask CRAN for a binary version of 'TMB' matching CRAN's 'Matrix' package

EMAtools documentation built on Nov. 1, 2021, 1:07 a.m.