| getHelmert | R Documentation | 
Get Helmert Coding of column j of group with length of unique values (count-1)
getHelmert(x, j, count = NULL)
x | 
 a numeric vector  | 
j | 
 column no  | 
count | 
 length unique values of group minus 1  | 
A numeric vector
Andrew F. Hayes.(2018) Introduction to Mediation, Moderation and Conditional Process Analysis(2nd Ed.). New York, NY: The Guilford Press. p584
x=c(1:4,4:2,2,3,5) getHelmert(x,1) getHelmert(mtcars$cyl,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.