powered by
This function allows you to center on grand-means.
gcenter(var)
name of variable to be centered
A column in your dataframe (with grand-mean centered data)
# NOT RUN { data$centeredVAR<-gcenter(data$var) # }
Run the code above in your browser using DataLab